0
0

As I upgraded from the 3.62 version to 3.70. I know have a problem with FSOUND_STREAM_OPEN doesnt return a pointer atleast that is what I think.
[code:3ebxqvs3]
FSOUND_STREAM *mod = NULL;
if ( FSOUND_GetVersion() < FMOD_VERSION)
{
printf("Error: You are using the wrong DLL version! You should be using FMOD %.02f\n", FMOD_VERSION);
exit(1);
}

if (!FSOUND_Init(44100, 64, 0))
{
    printf(&quot;%s\n&quot;, FMOD_ErrorString(FSOUND_GetError()));
    exit(1);
}

mod = FSOUND_Stream_Open(&quot;away_from_the_sun.mp3&quot;, FSOUND_HW3D, 0, 0);

if(!mod)
{
    printf(&quot;%s\n&quot;, FMOD_ErrorString(FSOUND_GetError()));
    exit(1);
}

FSOUND_Stream_Play(1, mod);
FSOUND_DSP_SetActive(FSOUND_DSP_GetFFTUnit(), TRUE);

[/code:3ebxqvs3]
This is the code I have concerning Fmod it compiles and runs but quit saying no errors. but if I disable the handle check then it continues through the program running my visual displays but no sound. Any Ideas???

  • You must to post comments
0
0

ok, so I see what you are saying about the FSOUND_FORCEMONO. But I aint understanding the Hardware Channel thing. Are you talking about the FSOUND_Stream_play()? If so I thought it said “1”, and 0-63 are software. Am I wrong in my thinking?

  • You must to post comments
0
0

Like Brett said, you should use FSOUND_FREE instead of 1. Channel 1 would be a software channel and you’ve specified FSOUND_HW3D which expects to be played on a hardware channel. Try this :

[code:3egys1sa]FSOUND_Stream_Play(FSOUND_FREE, mod); [/code:3egys1sa]

  • You must to post comments
0
0

Thanks for the help everything running ok. So why was this not a problem with 3.62? It played fine under that lib. But again it is working and I thank you. Is they any sample code on reading the data from the spetrum buffer?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.