Mix_LoadWav() Access Violation

Hello,

Was wondering if anybody else had this problem. I am trying to load a wave using
Mix_LoadWAV(…), but the function breaks on an access violation in SDL. Im
using the SDL 1.2.15, and the version of SDL_Mixer i’m using is 1.2.12. here is
a copy of my code:

int main(int argc, char argv[])
{
Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 4096);
Mix_Music
Music;
Mix_Chunk* Sample = Mix_LoadWAV(“dark_side.wav”);
if(!Sample)
OutputDebugStringA(Mix_GetError());
Mix_VolumeChunk(Sample, 15);
//Music = Mix_LoadMUS(“test_music.wav”);
//Mix_VolumeMusic(MIX_MAX_VOLUME);
//Mix_PlayMusic(Music, 0);
Mix_PlayChannel(-1, Sample, 0);

while(true);
/*cAudioManager AudioManager;

AudioManager.LoadSoundFile("Sounds.txt");

AudioManager.PlaySound("dark_side");
AudioManager.PlayMusic("test_music.wav");*/

SDL_Quit();

system("PAUSE");
return 0;

};

it plays music correctly, but it doesn’t want to load the samples.

Thanks in advance!

Patrick

Mix_Chunk* Sample = Mix_LoadWAV(“dark_side.wav”);

Can you send me the dark_side.wav off-list?

–ryan.