Author Topic: Noise with clicks in the Asio channel, when the track ends and between tracks.  (Read 275 times)

Vitaliy

  • Posts: 20
What is this noise with clicks in the Asio channel, when the track ends and between the tracks this noise appears for half a second. Noise is generated when the channel is not loaded (or without active stream). While playing music - no noise is present.
How to remove this noise from the channel? It is impossible to use the program with it, since it is loud.

Code: [Select]
BASS_ASIO_Init(0,0);
    BASS_ASIO_ChannelEnable(false, 0, @AsioProc, nil);
    BASS_ASIO_ChannelJoin(FALSE, 1, 0);
    BASS_ASIO_ChannelSetFormat (False, 0, BASS_ASIO_FORMAT_FLOAT);

stream:= Bass_streamCreateFile(false, Pchar(UTF8ToWinCP(Listbox2.Items.Strings[item])), 0, 0, BASS_SAMPLE_FLOAT or BASS_STREAM_DECODE);

BASS_ChannelGetInfo(stream,info);
     BASS_ASIO_ChannelSetRate(FALSE, 0, info.freq);
     BASS_ASIO_SetRate(info.freq);
BASS_ASIO_Start(0,0);
and
Code: [Select]
function ASIOPROC(input:BOOL; channel:DWORD; buffer:Pointer; length:DWORD; user:Pointer): DWORD; StdCall;
var
c: Dword;
Begin
c := Bass_ChannelGetData(stream, buffer, Length);
 if (c = -1) then c := 0;
 Result := c;
end;



Vitaliy

  • Posts: 20