TAudioIn Properties


BaseChannel : Integer;

Soundcards and their drivers present several audiochannels. There is a variable called InputChannelsCount in ACS_Audio unit. The channels are numbered starting from zero and the maximum number possible is InputChannelsCount - 1.

Linux Note: Under ALSA there is only one channel available for each soundcard installed.

Windows Note: Under Windows this property holds the id of the current wave-audio device [0..InputChannelsCount-1] where InputChannelsCount variable holds the total number of input wave-audio devices.


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.


RecordTime : Integer;

This property allow you to set the record duration time in seconds. If you assign -1 to this property TAudioIn will never stop recording by itself. In both cases you can stop recording at any time by calling Stop method of the respective output component.


TAudioIn ACS Classes Home


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