ripdad Posted March 19, 2020 Posted March 19, 2020 (edited) 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 March 20, 2020 by ripdad "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward
TheXman Posted March 19, 2020 Posted March 19, 2020 (edited) 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 March 19, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
ripdad Posted March 19, 2020 Author Posted March 19, 2020 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
ripdad Posted March 20, 2020 Author Posted March 20, 2020 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, ¶m); // 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now