General info | Getting started | Samples | Components reference | FAQ | Solutions

Components reference


    vcproWaveResamplerX

PCM audio stream conversion from one format to another. No ACM codecs are used by this component.

Specify PCM stream parameters before activating: set PcmSamplesPerSec, PcmBitsPerSample and PcmNumChannels to specify the source format parameters. Set DstSamplesPerSec, DstBitsPerSample and DstNumChannels properties to specify the destination stream format parameters. Set RealTime to true if you wish the resampling to be made in real-time manner.

Implements
IvcproWaveResamplerXdefault 
IvcproBaseEventsdefaultsource
IvcproProvider  
IvcproConsumer  

IvcproWaveResamplerX (IDispatch)
Dispatch interface for vcproWaveResamplerX component
Methods
void Flush()Completes processing of the last available data. Recommended to call before component closing
bool FormatChoose(BSTR Title, long Handle)Creates an ACM-defined dialog box that enables the user to select a waveform-audio format. Title parameter indicates dialog's title, Handle - parent handle of dialog window. If Handle is 0 then ActiveX component handle is used
VARIANT GetData()Reads available data from output stream. Usually used when OnDataAvailable event fires
long GetVolume(long Channel)Returns current volume value. CalcVolume must be set to True. Pass Channel = 0/1 (left/right) for stereo and 0 for mono. Result values range is 0...300 (logarithmic scale)
void SetData(VARIANT* data)Writes data to input stream
bool SetVolume(long Channel, long Volume)If Channel has default value of -1, this volume value will be applied on all channels. Volume = 1000 means no volume change (100%); 500 = 50%; 2000 = 200% and so on
Properties
bool ActiveSet to true to activate (open) the component. All other properties should be set to proper values before activation. Set to false to deactivate (close) the component
bool AddSilenceSpecifies whether device should add silence when it runs out of audio data
bool AutoActivateWhen true tells the component it must activate consumer (if any) before activating itself. Same applies for deactivation. When false the component does not change the consumer state
bool CalcVolumeWhen true tells the component to calculate the audio volume of a stream coming into or from the component
long DataSizeInReturns data written into but not yet processed by the pipe
long DataSizeOutReturns data size available to read from the pipe
long DstPcmBitsPerSampleSpecifies number of bits per sample for destination PCM format of resampler device
long DstPcmNumChannelsSpecifies number of channels per sample for destination PCM format of resampler device
long DstPcmSamplesPerSecSpecifies number of sampler per second for destination PCM format of resampler device
BSTR DumpInputFile name to dump the component input data to
BSTR DumpOutputFile name to dump the component output data to
bool IsFormatProviderWhen true the component will assign stream format to the consumer (if any). This simplifies the process of distributing stream format among linked components. For example WaveRiff component can assign PCM format to linked WaveOutDevice component, so WAVe file will be played back correctly
long OverNumSpecifies how many chunks of data component can store in input or output buffer, if data cannot be processed immediately. Every chunk holds 1/10 sec. of audio. Set this property to 0 to disable the buffer overflow checking (NOTE: be carefully, since this could lead to uncontrolled memory usage grow)
long PcmBitsPerSampleSpecifies number of bits per sample for wave device
long PcmNumChannelsSpecifies number of channels per sample for wave device
long PcmSamplesPerSecSpecifies number of samples per second for wave device
bool RealTimeSpecifies whether device is working as real-time device
unaSilenceDetectionMode SilenceDetectionModeNo silence detection - unasdm_none. Obsolete approach - unasdm_VC. New approach based on dynamic speech processing - unasdm_DSP.
bool SyncEventsSpecifies whether events calls synchronized through main thread


See also...

Base interfaces, vcproWaveInDeviceX, vcproWaveOutDeviceX, vcproWaveCodecDeviceX, vcproWaveRiffX, vcproWaveMixerX, vcproWaveMultiBandSplitterX, vcproEqualizerX, vcproIpServerX, vcproIpClientX, vcproIpBroadcastServerX, vcproIpBroadcastClientX, vcproMediaGateX, vcproConferenceServerX, vcproVolumeControlX, vcproDisplayBandsX


VCX Library 3.0
Copyright © 2002-2007 Lake of Soft, Ltd
All rights reserved.