   load sounds with SDL_mixer
  I am using SDL and OpenGL and I want to use my ogg files with SDL_mixer.I can load sounds and play them but they are slower than normal.If you can help meI will be very thankful.   
  This is in the wrong section.Also, you must provide more information. How do you load the ogg file? How do you play it? Post some code.   ;#define audio_rate  22050#define audio_format AUDIO_S16SYS#define audio_channels 2#define audio_buffers  4096void musicFinished(){    Mix_HaltMusic();    Mix_CloseAudio();}void play_music(int k){    if(Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers) != 0)    {printf("Unable to initialize audio: %s\n", Mix_GetError());return;    }    if(Mix_PlayMusic(music, 0) == -1)    {printf("Unable to play file: %s\n", Mix_GetError());return;    }}int load_musics(char name[]){    music = Mix_LoadMUS(name);    if(music == NULL)    {    printf("Unable to load file: %s\n", Mix_GetError());    rv=1;    }    else printf("Music:%s loaded.\n",name);    Mix_HookMusicFinished(musicFinished);}This is all of my code for load and play I think audio format is wrong.[Edited by - aslangsfma on January 20, 2009 10:50:04 AM];  Try setting the audio_rate to 44100   