<code>
Function Tform2.Rec;
var
avail:Dword;
begin
repeat
Recording:=Bass_RecordStart(44100,2,0,@NULL,@NULL);//Start recording without Record Proc;
avail:=Bass_ChannelGetData(recording,@Buffer,BASS_DATA_AVAILABLE); // retrieve the ammount of data in the buffer
{if avail>=NB then
BASS_ChannelGetData(Recording,@Buffer,NB);}
until avail>=NB;
BASS_ChannelGetData(Recording,@Buffer,NB);
end;
</Code>
That is the code i have written
with buffer declared in a type like so :
<code>
Buf3 = array [0..NB-1] of extended;
var
Buffer:Buf3;
</code>
This code works however i can't seem to get values other than 0 in the buffer.
Do i need to specify my recording device?
Any suggestions?
Thanks
