0
0

Hi! I´m having a strange problem. When I try to open a stream with the FSOUND_NORMAL option I can´t hear the music, just when I open with FSOUND_HW2D. I tried to set mixer, output and driver, but nothing worked. Thanks!!!

  • You must to post comments
0
0

Sure. Here it goes:

Before using FSOUND_Init I set these 3 parameters:

FSOUND_SetOutput(FSOUND_OUTPUT_WINMM);
FSOUND_SetDriver(0); // OnBoard sound card
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_MMXP6);

When I want to play a music I do the folowing:

FSOUND_Init(44100, 16, FSOUND_INIT_GLOBALFOCUS);
stream = FSOUND_Stream_Open(path, FSOUND_NORMAL, 0, 0);
FSOUND_Stream_Play(FSOUND_FREE, stream);

I have already tried to use FSOUND_NORMAL | FSOUND_NONBLOCKING instead of FSOUND_NORMAL, but it didn´t work.

I am triyng to do this because I need to use the FSOUND_GetSpectrum and when I open the stream using FSOUND_HW2D it doesn´t work. Thanks!!!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.