0
0

FSOUND_SetMinHardwareChannels(50);
FSOUND_Init(44100, 50, 0);
sample1 = FSOUND_Sample_Load(FSOUND_FREE, "sample.wav", FSOUND_HW3D, 0);
FSOUND_Sample_SetLoopMode(sample1, FSOUND_LOOP_NORMAL);

for (int j = 0; j < 50; j++){Unit[j].ambienthandle = FSOUND_PlaySound3DAttrib(FSOUND_FREE, sample1, -1, -1, -1, Unit[j].position, NULL);
}

ok this kind off works.. what i am assuming is that if the soundcard does not support 50 channels in hardware then all 50 channels will be in software mode. Some channels are playing and some are not..

system is win2k Abit BH6 motherboard soundblaster live

  • You must to post comments
0
0

I tried setting max to 32 had a very noisy environment + some of the channels were still not playing. Setting to max hardware channels of 16 is working correctly, and the noisy environment is gone. No blue screens luckily !

  • You must to post comments
0
0

Just wondering if before your fsound init you had a FSOUND_SetHWND()? Cause you didn’t have FSOUND_INIT_GLOBALFOCUS in th FSOUND_Init(). Might not make any differance but hey it might.

  • You must to post comments
0
0

I didnt, ill put it in and have a quick test, although i doubt it will effect, if directsound doesnt know to play the sounds on my windows focus then it shouldnt play any at all .. Unless its loosing focus then regaining it over and over.. Ok i tried it and it made no difference, was worth a shot 😛

Bret can you clarify this, When the window does not have focus and FSOUND_SetHWND() has not been called will fmod still output to the channel, and then assuming directsound is the driver will it output fmods request?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.