Components which deal with audio hardware I/O using the DirectX API.
| ACS_DXAudio | Components which deal with audio hardware I/O using the DirectX API. |
| Constants | |
| DirectX Buffers | These constants determine the buffer size of DX and thus the delay heard when beginning audio playback. |
| TDXAudioOut | Performs audio playback using the DirectX API. |
| Properties | |
| DeviceCount | This read only property returns the number of logical output DirectSound devices. |
| DeviceName | This read only array property returns the name of the device specified by its number. |
| Underruns | This read only property returns the number of internal buffer underruns that have occurred during playback. |
| Volume | Use this property to set or get the volume of the sound being played. |
| DeviceNumber | Use this property to select the playback device by number. |
| OnUnderrun | OnUnderrun event is raised when the component has run out of data. |
| TDXAudioIn | Performs audio recording from a sound card using the DirectX API. |
| Properties | |
| DeviceCount | This read only property returns the number of logical DirectSound input devices. |
| DeviceName[Number : Integer] | This read only array property returns the name of the device specified by its number. |
| Overruns | This read only property returns the number of internal buffer overruns that have occurred during recording. |
| SamplesToRead | Use this property to set the number of samples (frames) the component should record. |
| DeviceNumber | Use this property to select the recording device by number. |
| InBitsPerSample | Use this property to set the number of bits per sample in the audio stream the component will provide. |
| InChannels | Use this property to set the number of channels in the audio stream the component will provide. |
| InSampleRate | Use this property to set the sample rate of the audio stream the component will provide. |
| RecTime | Use this property to set the recording duration (in seconds). |
| OnOverrun | OnOverrun event is raised when this component provides data faster than the rest of audio-processing chain can consume. |
Performs audio playback using the DirectX API. Descends from TAuOutput. TDXAudioOut component buffers its output in order to make it more smooth. This buffering introduces some delay at the beginning of the audio playback with TDXAudioOut. You can decrease the delay by decreasing the size of the TDXAudioOut buffer. The size of this buffer is set up by the DS_BUFFER_SIZE constant in the ACS_DxAudio.pas file. If you decrease the buffer size you may also want to decrease the DS_POLLING_INTERVAL value which determines how often the component requests data from its input.
| Properties | |
| DeviceCount | This read only property returns the number of logical output DirectSound devices. |
| DeviceName | This read only array property returns the name of the device specified by its number. |
| Underruns | This read only property returns the number of internal buffer underruns that have occurred during playback. |
| Volume | Use this property to set or get the volume of the sound being played. |
| DeviceNumber | Use this property to select the playback device by number. |
| OnUnderrun | OnUnderrun event is raised when the component has run out of data. |
This read only array property returns the name of the device specified by its number. Valid numbers range from 0 to DeviceCount - 1.
Use this property to set or get the volume of the sound being played. The default value is 0 which corresponds to the original volume of the sound. Valid values range from -10000 (silence) to 0. The Volume property allows you to make the played sound softer than the original one, but not louder.
Use this property to select the playback device by number. The default value is 0 which corresponds to the default audio output device in your system. Valid numbers range from 0 to DeviceCount - 1.
OnUnderrun event is raised when the component has run out of data. This can happen if the component receives data at slow rate from a slow CD-ROM unit or a network link. You will also get OnUnderrun event when unpausing paused playback (this is a normal situation). Usually TDXAudioOut successfully recovers from underruns by itself, but this causes pauses in playback so if you start to receive OnUnderrun events, you may try to increase the speed rate of data passing to the component, if you can. Yo can check the Underruns property for the total number of underruns.
Performs audio recording from a sound card using the DirectX API. Descends from TAuInput.
| Properties | |
| DeviceCount | This read only property returns the number of logical DirectSound input devices. |
| DeviceName[Number : Integer] | This read only array property returns the name of the device specified by its number. |
| Overruns | This read only property returns the number of internal buffer overruns that have occurred during recording. |
| SamplesToRead | Use this property to set the number of samples (frames) the component should record. |
| DeviceNumber | Use this property to select the recording device by number. |
| InBitsPerSample | Use this property to set the number of bits per sample in the audio stream the component will provide. |
| InChannels | Use this property to set the number of channels in the audio stream the component will provide. |
| InSampleRate | Use this property to set the sample rate of the audio stream the component will provide. |
| RecTime | Use this property to set the recording duration (in seconds). |
| OnOverrun | OnOverrun event is raised when this component provides data faster than the rest of audio-processing chain can consume. |
This read only array property returns the name of the device specified by its number. Valid numbers range from 0 to DeviceCount - 1.
Use this property to select the recording device by number. The property default value is 0 which corresponds to the default audio input device in your system. Valid numbers range from 0 to DeviceCount - 1.
OnOverrun event is raised when this component provides data faster than the rest of audio-processing chain can consume. It indicates that some data is lost. You may also get OnOverrun event when unpausing paused recording (this is a normal situation). To get the total number of overruns read the Overruns property.