| B | |
| BlockingRun, TAuOutput | |
| C | |
| Clear | |
| CloseFile | |
| CloseTray, TCDIn | |
| Compare4, TDemoWaveOut | |
| CopyData, TAuInput | |
| Create, TDemoWaveIn | |
| D | |
| Done, TDemoWaveOut | |
| DoOutput, TDemoWaveOut | |
| E | |
| Eject, TCDIn | |
| F | |
| FillBuffer, TAuInput | |
| Flush, TAuInput | |
| FormClose | |
| G | |
| GetData, TAuInput | |
| GetDataInternal, TDemoWaveIn | |
| GetFormatDesc | |
| I | |
| Init, TAuInput | |
| J | |
| Jump, TAuFileIn | |
| O | |
| OpenFile | |
| P | |
| Pause, TAuOutput | |
| PauseRecord, TAudioTap | |
| Prepare, TDemoWaveOut | |
| R | |
| ReadRIFFHeader, TDemoWaveOut | |
| Resume, TAuOutput | |
| ResumeRecord, TAudioTap | |
| Run, TAuOutput | |
| S | |
| Seek, TAuStreamedInput | |
| SeekInternal | |
| SetEndTime, TAuFileIn | |
| SetStartTime, TAuFileIn | |
| StartRecord, TAudioTap | |
| Stop, TAuOutput | |
| StopRecord, TAudioTap |
In some situations, such as console programs or DUnit test units, background processing is not desirable.
procedure BlockingRun
Clears all the tag contents.
procedure Clear
Closes the file opened with OpenFile.
procedure CloseFile; virtual; abstract
Called by the base methods of TAuFileIn class to close the file.
procedure CloseFile; override
Closes CD-ROM drive’s tray.
procedure CloseTray
Used internally by ReadRIFFHeader.
function Compare4( S1, S2 : PChar ) : Boolean
Writes no more than BufferSize data into Buffer
function CopyData( Buffer : Pointer; BufferSize : Integer ) : LongWord
Reimplementing constructor and destructor is optional.
constructor Create( AOwner: TComponent ); override
Called to do whatever is needed to close the output as well as freeing any associated resources.
procedure Done; override
Called in a loop to perform actual output.
function DoOutput( Abort : Boolean ):Boolean; override
Ejects CD-ROM drive’s tray.
procedure Eject
The same as CopyData but tries to fill the Buffer.
function FillBuffer( Buffer : Pointer; BufferSize : LongWord; var EOF : Boolean ) : LongWord
This method closes the current input (opened with Init), clearing up all temporary structures allocated during data transfer.
procedure Flush
This OnClose event prevents exceptions if he form is closed while playing.
procedure TForm1.FormClose( Sender: TObject; var Action: TCloseAction )
This method retrieves input data.
procedure GetData( var Buffer : Pointer; var Bytes : LongWord ); virtual
This method returns a format description based on the CodecIndex and FormatIndex parameters.
function GetFormatDesc( CodecIndex, FormatIndex : Word ) : String
This method returns a format description based on the CodecIndex and FormatIndex parameters.
function GetFormatDesc( CodecIndex, FormatIndex : Word ) : String
This method prepares input component for reading data.
procedure Init
Opens the file or stream if it is not already open.
procedure OpenFile; virtual; abstract
Called by the base methods of TAuFileIn class to open the file.
procedure OpenFile; override
Pauses the output.
procedure Pause
Call this method to pause recording.
procedure PauseRecord
Performs all the steps required to initialize output.
procedure Prepare; override
A helper function that parses wav file header and gets audio data parameters.
function ReadRIFFHeader( Stream : TStream; var AudioInfo : TAudioInfo ) : Boolean
Resumes previously paused output.
procedure Resume
Call this method to resume paused recording.
procedure ResumeRecord
After an input component has been assigned, call Run to start the audio processing chain.
procedure Run
This method allows you to change the current playing position in the the input component.
function Seek( SampleNum : Int64 ) : Boolean
This abstract method should be overridden with an implementation dependong on whether your input component is seekable or not.
function SeekInternal( var SampleNum : Int64 ) : Boolean; virtual; abstract
Performs the file seeking.
function SeekInternal( var SampleNum : Int64 ) : Boolean; override
This function is a wrapper around EndSample property, provided for convenience.
function SetEndTime( Minutes, Seconds : LongWord ) : Boolean
This function is a wrapper around StartSample property, provided for convenience.
function SetStartTime( Minutes, Seconds : LongWord ) : Boolean
Call this method to start recording audio data passing through an audio tap.
procedure StartRecord
Stops the busy component or does nothing if the component is idle.
procedure Stop( Async : Boolean = True )
Call this method to stop recording.
procedure StopRecord