0
0

Hi I’m having this difficulty with controlling the panning as well. I’m using Delphi 6 and it’s all working nice and all, got it all working in my soundengine for a game I’m developing, except for the panning part.

I’m playing stereo samples, which I want to have panned. Either turning of a channel or shifting one channel to the other side should do it (prefere the latter though).

Here’s my code.

begin
Stream := FSOUND_Stream_Open(PChar(‘D:\mp3.mp3’), FSOUND_NORMAL or FSOUND_LOOP_NORMAL, 0, 0);
ChanMp3 := FSOUND_Stream_Play(FSOUND_FREE, Stream);

FSOUND_SetPan(ChanMp3, FSOUND_STEREOPAN);
FSOUND_SetVolume(ChanMp3, 255);
end;

on a sliderchange event:
FSOUND_SetPan(ChanMp3, Slider.Position {is 0..255});

I’ve tried different settings, but nothing changes when the slider is slid. All I can sense (in any setting) is that the volume in the middle is increasingly slightly higher than not in the middle.

I’m not getting any panning effect the ways I’ve tried…

Can anybody help me on this??

  • Worm
  • You must to post comments
0
0

You might be interrested to know I found the solution…

http://52.88.2.202/forum/viewtopic.php?p=12186#12186

  • Worm
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.