hi
Is "Input_Wasapi_Proc" a WASAPIPROC function for a recording/input device? If so, why are you calling BASS_ChannelGetData there? That would usually only be used in an output device's WASAPIPROC.
yes!, OK now i understand nothing. is that not the same what you do in your rectest demo with?
DWORD CALLBACK InWasapiProc(void *buffer, DWORD length, void *user)
...
while ((c=BASS_ChannelGetData(inmixer,temp,sizeof(temp)))>0) {
...
Do you want to display the level of the recording?
I want to display the level of the mixer channel, because I add various DSP effects to the channel's
basically what i wanna do is, I want to create a channel apply various DSP effects to that channel's
then visual display the result. without recording the channel.
then create a second channel and apply the same DSP effects as to the first channel
but the second channel could have a different sample rate.
then setup a DSP Channel (BASS_ChannelSetDSP) on that second channel and that DSP Channel
will feed an external encoder, like (lame_enc.dll, libFLAC.dll,...)
you've missed out an important BASS_StreamPutData call from the code there.
no i haven't! it's still in my (Delphi) code.
I just need the translation of the code that I had posted. I just try to understand your code
while ((c=BASS_ChannelGetData(inmixer,temp,sizeof(temp)))>0) {
// increase buffer size if needed
if ((reclen%BUFSTEP)+c>=BUFSTEP) {
recbuf=realloc(recbuf,((reclen+c)/BUFSTEP+1)*BUFSTEP);
if (!recbuf) {
Error("Out of memory!");
MESS(10,WM_SETTEXT,0,"Record");
return 0; // stop recording
}
}
// buffer the data
memcpy(recbuf+reclen,temp,c);
reclen+=c;
should there be a better way then Please give me some advice
and thanks for your help!