TALSAAudioIn Properties


BufferSize : Integer;

The size of the driver buffer in bytes. This value is used if PeriodSize and PeriodNum properties are set to zero. The value of this property also affects Latency.


Device : String;

The device name according to ALSA device-naming convention (see the ALSA documentation for details).


DriverState : Integer;

Read only

The current state of the driver, used for debugging mostly. When the component is active this property returns one of the ALSA state constants. When the component is idle the special ALSAStateIdle constanat defined in the ACS_ALSA unit is returned.


Latency : Double;

Read only

Returns the driver latency in seconds (see the ALSA documentation for details).


InBitsPerSample : Integer;

Use this property to set the number of bits per sample for the input audio stream. Possible values are 8 and 16.


InChannels : Integer;

Use this property to set the number of channels for the input audio stream. Possible values are 1 (mono) and 2 (stereo).


InSampleRate : Integer;

Use this property to set the sample rate for the input audio stream. Possible values are determined by the soundcard hardware.


PeriodSize : Integer;

Period size (in frames). This property together with PeriodNum is used to set up the buffer size. If both these properties are not zero, the BufferSize property is ignored. This value affects internal driver settings and Latency.


PeriodNum : Integer;

The number of periods. This property together with PeriodSize is used to set up the buffer size. If both these properties are not zero, the BufferSize property is ignored. This value affects internal driver settings and Latency.


RecTime : Integer;

This property allow you to set the record duration time in seconds. Of course you can stop recording before this time elapses by calling Stop method of the respective output component.


SilentOnOverrun : Boolean;

If buffer overrun occurs while capturing audio data and this property is set to True, the component handles this situation by itself and continues reading data. Otherwise the EALSABufferOverrun exception is raised.


TALSAAudioIn ACS Classes Home


Copyright © 2002, 2003 Andrei Borovsky. All rights reserved.