Okay, I’m gonna try again.
I’m using MSVC, Windows SDK, and DirectX to build my app. I’m using FMOD alone to do sound. I’m trying to stream an mp3 from file.
I init fmod, open the stream, set the volume, and play the stream in channel 0, with no errors. FSOUND_IsPlaying returns true for channel 0 after FSOUND_Stream_Play. But I don’t hear anything.
Code: (This is outside any sort of loop, so it’s not stuck looping.
FSOUND_Init(44100,32,0); //Initiate fmod
FSOUND_STREAM * music;
music = FSOUND_Stream_OpenFile(“song.mp3”,FSOUND_NORMAL,0);
My soundcard is Soundblaster Audigy. Please help.
- bigfundy asked 14 years ago
Non-FMOD apps do produce sound. All my media player’s play mp3’s fine. In Control Panel -> Sounds and Audio Devices I have my soundcard (SB Audigy FFE0) selected from the list of sound playback devices. This is true for all the tabs.
Do you mean that I am not selecting the correct driver in my code? If so, I didn’t know I had to do this.
No, the window is in the foreground. I’ve tried using FSOUND_SetHWND() at three different points in my code.
I tried fooling around with the configuration settings in the fmod player. I changed the output driver to Windows Multimedia WaveOut (it was at DirectSound before). Bingo! the mp3 played! Settings problem. I didn’t know settings for all of fmod could be changed within this player. Thanks for clueing me in.
Now, how do I change the output driver to Windows Multimedia WaveOut in MY application. Let me guess, it’s in the html help file? I’ll check.
Please login first to submit.