Class unavclWaveResampler
Unit
unaVC_wave
Declaration
type unavclWaveResampler = class(unavclInOutWavePipe)
Description
Audio stream conversion from one PCM format to another. No ACM codecs are used by this component.
Usage: If components has no provider component with formatProvider=true, specify PCM stream parameters before activating: set pcm_SamplesPerSec, pcm_BitsPerSample and pcm_NumChannels to specify the source format parameters.
Set dst_SamplesPerSec, dst_BitsPerSample and dst_NumChannels properties to specify the destination stream format parameters.
Set realTime to true if you wish the resampling to be made in real time manner.
Example: c_resampler_client and c_resampler_server components are used in vcNetTalk demo for resampling the streams produced by WAV-reading components to PCM parameters required by mixers.
Hierarchy
Overview
Methods
Properties
Description
Methods
|
function applyDeviceFormat(format: PWAVEFORMATEXTENSIBLE; isSrc: bool = true): bool; override; |
Applies new audio format for PCM wave resampler device.
|
|
function getFormatExchangeData(out data: pointer): uint; override; |
|
|
procedure AfterConstruction(); override; |
|
|
procedure BeforeDestruction(); override; |
|
|
procedure createNewDevice(); override; |
Creates PCM wave resampler device.
|
Properties
|
property addSilence; |
|
|
property calcVolume; |
|
|
property dst_BitsPerSample: unsigned index 1 read getDstSamplingParam write setDstSamplingParam default c_defSamplingBitsPerSample; |
Specifies number of bits per sample for destination PCM format of resampler device.
|
|
property dst_NumChannels: unsigned index 2 read getDstSamplingParam write setDstSamplingParam default c_defSamplingNumChannels; |
Specifies number of channels per sample for destination PCM format of resampler device.
|
|
property dst_SamplesPerSec: unsigned index 0 read getDstSamplingParam write setDstSamplingParam default c_defSamplingSamplesPerSec; |
Specifies number of sampler per second for destination PCM format of resampler device.
|
|
property enableDataProcessing; |
Specifies whether the component would perform any data modifications.
|
|
property minActiveTime; |
|
|
property minVolumeLevel; |
|
|
property onThreshold; |
|
|
property realTime; |
|
|
property silenceDetectionMode; |
|
|
property useSpeexDSP: boolean read f_uspeexdsp write setUspeexdsp default false; |
|
(c) 2012 Lake of Soft
Generated by PasDoc 0.12.1 on 2012-10-09