TALSAAudioOut 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).


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.


SilentOnUnderrun : Boolean;

If buffer underrun occurs while playing audio data and this property is set to True, the component handles this situation by itself and continues playing. Otherwise the EALSABufferUnderrun exception is raised.


Volume : Integer;

Use this property to set audio volume. The maximum value is 255 (default), the minimum - 0. Note that is volume level doesn't affect the soundcard mixer settings.


TALSAAudioOut ACS Classes Home


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