Author Topic: Pan for WASAPI output?  (Read 218 times)

MikeV

  • Posts: 147
Pan for WASAPI output?
« on: 26 Apr '17 - 12:05 »
Pan for WASAPI output seems to be missing?

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: Pan for WASAPI output?
« Reply #1 on: 26 Apr '17 - 16:24 »
A pan/balance control could be implemented with the BASS_FX add-on's BASS_FX_BFX_VOLUME effect, which allows a different level to be applied to each channel. Something like this:

Code: [Select]
volfx = BASS_ChannelSetFX(mixer, BASS_FX_BFX_VOLUME, 0);
BASS_BFX_VOLUME param;
param.lChannel = BASS_BFX_CHAN1; // left channel
param.fVolume = pan<=0 ? 1 : 1-pan; // left level
BASS_FXSetParameters(volfx, &param); // apply it
param.lChannel = BASS_BFX_CHAN2; // right channel
param.fVolume = pan>=0 ? 1 : 1+pan; // right level
BASS_FXSetParameters(volfx, &param); // apply it

MikeV

  • Posts: 147
Re: Pan for WASAPI output?
« Reply #2 on: 26 Apr '17 - 17:03 »
So Bass's pan is actually a balance?

MikeV

  • Posts: 147
Re: Pan for WASAPI output?
« Reply #3 on: 26 Apr '17 - 17:13 »
I take it your answer also implies WASAPI has no support for the pan/balance control?

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: Pan for WASAPI output?
« Reply #4 on: 26 Apr '17 - 17:26 »
So Bass's pan is actually a balance?

Yes, when used on stereo sounds, BASS_ATTRIB_PAN is a balance control. It is a pan control on mono sounds.

I take it your answer also implies WASAPI has no support for the pan/balance control?

BASSWASAPI doesn't currently support balance control. WASAPI itself does support device balance control (like in the Sound control panel) but not session balance control.