Home Units Hierarchy Routines All identifiers

Class unavclWaveResampler

DescriptionHierarchyFieldsMethodsProperties

Unit

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

Protected function applyDeviceFormat(format: PWAVEFORMATEXTENSIBLE; isSrc: bool = true): bool; override;
Protected function getFormatExchangeData(out data: pointer): uint; override;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Protected procedure createNewDevice(); override;

Properties

Published property addSilence;
Published property calcVolume;
Public property dstFormatExt: PWAVEFORMATEXTENSIBLE read f_dstFormatExt write setDstFormat;
Published property dst_BitsPerSample: unsigned index 1 read getDstSamplingParam write setDstSamplingParam default c_defSamplingBitsPerSample;
Published property dst_NumChannels: unsigned index 2 read getDstSamplingParam write setDstSamplingParam default c_defSamplingNumChannels;
Published property dst_SamplesPerSec: unsigned index 0 read getDstSamplingParam write setDstSamplingParam default c_defSamplingSamplesPerSec;
Published property enableDataProcessing;
Published property minActiveTime;
Published property minVolumeLevel;
Published property onThreshold;
Published property realTime;
Public property resampler: unaWaveResampler read getResampler;
Published property silenceDetectionMode;
Published property useSpeexDSP: boolean read f_uspeexdsp write setUspeexdsp default false;

Description

Methods

Protected function applyDeviceFormat(format: PWAVEFORMATEXTENSIBLE; isSrc: bool = true): bool; override;

Applies new audio format for PCM wave resampler device.

Protected function getFormatExchangeData(out data: pointer): uint; override;
 
Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 
Protected procedure createNewDevice(); override;

Creates PCM wave resampler device.

Properties

Published property addSilence;
 
Published property calcVolume;
 
Public property dstFormatExt: PWAVEFORMATEXTENSIBLE read f_dstFormatExt write setDstFormat;

Specifies destination PCM format of resampler device.

Published 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.

Published 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.

Published 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.

Published property enableDataProcessing;

Specifies whether the component would perform any data modifications.

Published property minActiveTime;
 
Published property minVolumeLevel;
 
Published property onThreshold;
 
Published property realTime;
 
Public property resampler: unaWaveResampler read getResampler;

Returns PCM resampler device.

Published property silenceDetectionMode;
 
Published 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