At the present moment, are you loading a single sound, or many sounds? It'd help if you would post the actual code.
Is it every sound that's failing to load? The 3rd sound? The only sound?
Since it is actually SDL_RWFromFile() that is failing, and Mix_LoadWAV() is actually overwriting the real error message, try this function instead and post what the error says:
Mix_Chunk *My_LoadWAV(const char *filepath)
{
SDL_RWops *fileData = SDL_RWFromFile(filepath, "rb");
if(!fileData)
{
std::cout << "My_LoadWAV() failed to call SDL_RWFromFile().\n\t\"" << SDL_GetError() << "\"" << std::endl;
return NULL;
}
Mix_Chunk *chunk = Mix_LoadWAV_RW(fileData, 1);
if(!chunk)
{
std::cout << "My_LoadWAV() failed to call Mix_LoadWAV_RW().\n\t\"" << Mix_GetError() << "\"" << std::endl;
return NULL;
}
return chunk;
}