0
0

Greetings, I dont know why but I cant hear the panning effect.
I tried with mono and stereo samples. I checked the panning effect in windows/ other programms and its working.

This is what I am doing to play sound:

[code:28gqzfjr]
var
Pan: Integer;
Error: TFModErrors;
SoundVoices: array [0..9] of PFSoundSample;

if not FSOUND_Init(22050, 32, 0) then
begin
FSOUND_Close();
end;
FSOUND_SetSFXMasterVolume(255);
SoundVoices[0] := FSOUND_Sample_Load(FSOUND_FREE, ‘Sounds/0.wav’, FSOUND_2D, 0, 0);
SoundVoices[1] := FSOUND_Sample_Load(FSOUND_FREE, ‘Sounds/1.wav’, FSOUND_2D, 0, 0);
SoundVoices[2] := FSOUND_Sample_Load(FSOUND_FREE, ‘Sounds/2.wav’, FSOUND_2D, 0, 0);

FSOUND_SetPan(1, 0);
Error:=FSOUND_GetError;
Pan:=FSOUND_GetPan(1);
FSOUND_PlaySound(1, SoundVoices[1]);
[/code:28gqzfjr]

I checked the Errors and there is no one error. I checked the Pan and the pan is changing exactly how it should be. So I don’t know what am I doing wrong…

Thanks for any advice,

Regards.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.