0
0

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_SetVolume(FSOUND_ALL,255);
FSOUND_STREAM * music;
music = FSOUND_Stream_OpenFile(“song.mp3”,FSOUND_NORMAL,0);
if(FSOUND_Stream_Play(0,music)==-1) ErrorMsg(“error”,hwnd);

My soundcard is Soundblaster Audigy. Please help.

  • You must to post comments
0
0

Is your program exiting before the stream gets a chance to play? Do the FMOD example programs work for you?

  • You must to post comments
0
0

Where can I get an FMOD example program? No, the prog doesn’t exit immediately after loading the stream. It enters a gigantic loop of code (which runs the game) after loading the stream.

  • You must to post comments
0
0

Look in the “samples” directory of the FMOD api.

  • You must to post comments
0
0

Never mind, I found the samples. I executed the two stream applications. Neither produced any sound. The DOS-style box read “Stream playing… press 1 to halve volume” with the stream2 sample program, but no sound.

  • You must to post comments
0
0

Make sure you’ve got the latest drivers/DirectX/FMOD and that everything’s plugged in and turned on. Do non-FMOD apps produce sound?

  • You must to post comments
0
0

Maybe I’ll use MIDI for my engine. That seems to work.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.