Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dbaxter

Pages: [1]
1
BASS_FX / Re: Changing volume of a WAV file
« on: October 05, 2007, 08:46:26 AM »
The volume change works fine on the front speakers of a 5.1 system, but I'm having trouble controlling the rear and center.
This code works fine for the front, but although it enters the rear speaker block, the output doesn't change.
  If (Speakers = 0) then BASS_ChannelSetAttributes(CChan,0,Vol,Pan);
  If (Speakers=16777216) then begin
     //BASS_FX_DSP_GetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan1;
     fxvol.fVolume := RxSlider1.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan2;
     fxvol.fVolume := RxSlider2.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
    end;
  If (Speakers=33554432) then begin
     //BASS_FX_DSP_GetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan5;
     fxvol.fVolume := RxSlider1.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan6;
     fxvol.fVolume := RxSlider2.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
    end;

The slider values go from 0 to 100. I tried various other values for fxvol.lChannel just as a shot in the dark, but no luck. What obvious thing am I missing? Thanks!
Dave

Pages: [1]