This is an abstract method. In TACSInput descendands it closes the current input, clearing up all temporary structures alocated during data transfer.
Note: usually this method is called internally by the output or converter component to which the input component is assigned. You can call this method if you want to get direct access to the audio stream. In such a case the sequence of calls should look like this:
InputComponent.Init;
InputComponent.GetData(...); // in a loop
InputComponent.Flush;
function GetData(Buffer : Pointer; BufferSize : Integer): Integer;
This is an abstract method. In TACSInput descendands this function reads the audio stream data into the Buffer. Returns the number of bytes actually read. Returns zero at the end of stream.
Note: usually this method is called internally by the output or converter component to which the input component is assigned. You can call this method if you want to get direct access to the audio stream. In such a case the sequence of calls should look like this:
InputComponent.Init;
InputComponent.GetData(...); // in a loop
InputComponent.Flush;
This is an abstract method. In TACSInput descendands it prepares input component for reading data.
Note: usually this method is called internally by the output or converter component to which the input component is assigned. You can call this method if you want to get direct access to the audio stream. In such a case the sequence of calls should look like this:
InputComponent.Init;
InputComponent.GetData(...); // in a loop
InputComponent.Flush;
Use this procedure to free input component's resourses when an exception occurs. After Reset the input component is once again ready to perform input.
Copyright © 2002, 2003 Andrei Borovsky. All rights reserved.