Jump to content

How to set record volume using BASS Library - (Solved)


Recommended Posts

I'm trying to figure out how to set the record input volume level. I tried using _BASS_ChannelSetVolume($hStream, 50).

That doesn't seem to work on input levels -- just output levels.

Local $hStream = _BASS_RecordStart(44100, 2, 16)

; here is where I want to set the record volume level.

 

Edited by ripdad

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

Have you looked at the  BASS_RecordSetInput function  of the BASS.DLL library?  To be clear, I am not referring to a UDF.  I am referring the actual DLL library.

Edited by TheXman
Link to comment
Share on other sites

Yes, I saw it.

It controls the Windows Mixer Input Levels.

I can do that, which is no problem. But, I don't want to touch the Windows mixer controls.

I want to set the input level of the BASS Record stream.

 

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

From: un4seen.com

Do you just want to adjust the level of a recording without changing the recording device's levels?
If so, you can do that with the BASS_FX_VOLUME effect, like this:

record = BASS_RecordStart(freq, chans, BASS_RECORD_PAUSE, RecordProc, user); // start recording paused
volfx = BASS_ChannelSetFX(recording, BASS_FX_VOLUME, 0); // set a volume effect on it
BASS_FX_VOLUME_PARAM param;
param.fTarget = volume;
param.fTime = 0;
BASS_FXSetParamters(volfx, &param); // apply volume effect settings
BASS_ChannelPlay(record, false); // resume the recording

Please see the BASS_FX_VOLUME_PARAM documentation for details on it.

Ian@un4seen

 

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...