Hello,
I've created Channel with BASS_StreamCreateURL and FChannel is valid variable.
Now I want to write the Channel into wav file.
var
Encoder: HENCODE;
buf: array [0..20000] of BYTE;
begin
Encoder := BASS_Encode_Start(FChannel, 'output.wav', BASS_ENCODE_PCM, Nil, Nil);
while (BASS_ChannelIsActive(FChannel) > 0) and (BASS_Encode_IsActive(Encoder) > 0) do
begin
BASS_ChannelGetData(FStream, @buf, sizeof(buf));
end;
but no output.wav is ever created.
Please suggest, how to do it right.