Description | Hierarchy | Fields | Methods | Properties |
type unaWaveResampler = class(unaWaveSoftwareDevice)
This class can resample audio stream from one PCM format to another. It does not use ACM codecs.
8, 16 and 32 bits samples with virtually unlimited number of channels and samples per second are supported.
constructor create(realTime: bool = false; overNum: unsigned = 0); |
|
destructor Destroy(); override; |
|
function setSampling(isSrc: bool; const format: WAVEFORMATEX): bool; overload; |
|
function setSampling(isSrc: bool; samplesPerSec: unsigned = c_defSamplingSamplesPerSec; bitsPerSample: unsigned = c_defSamplingBitsPerSample; numChannels: unsigned = c_defSamplingNumChannels): bool; overload; |
|
function setSamplingExt(isSrc: bool; format: PWAVEFORMATEXTENSIBLE): bool; overload; |
|
function afterOpen(): MMRESULT; override; |
|
function doWrite(buf: pointer; size: unsigned): unsigned; override; |
|
function flush2(waitForComplete: bool = true): bool; override; |
|
function getMasterIsSrc2(): bool; override; |
|
function onHeaderDone(header: unaWaveHeader; wakeUpByHeaderDone: bool): bool; override; |
|
procedure AfterConstruction(); override; |
|
procedure afterClose(closeResult: MMRESULT); override; |
property useSpeexDSP: bool read f_useSpeexDSP write f_useSpeexDSP; |
constructor create(realTime: bool = false; overNum: unsigned = 0); |
|
destructor Destroy(); override; |
|
function setSampling(isSrc: bool; const format: WAVEFORMATEX): bool; overload; |
|
Sets the source or destination stream format. |
function setSampling(isSrc: bool; samplesPerSec: unsigned = c_defSamplingSamplesPerSec; bitsPerSample: unsigned = c_defSamplingBitsPerSample; numChannels: unsigned = c_defSamplingNumChannels): bool; overload; |
|
Sets the source or destination stream format. |
function setSamplingExt(isSrc: bool; format: PWAVEFORMATEXTENSIBLE): bool; overload; |
|
function afterOpen(): MMRESULT; override; |
|
function doWrite(buf: pointer; size: unsigned): unsigned; override; |
|
// |
function flush2(waitForComplete: bool = true): bool; override; |
|
Forces all awaiting data to be resampled. |
function getMasterIsSrc2(): bool; override; |
|
Returns false. |
function onHeaderDone(header: unaWaveHeader; wakeUpByHeaderDone: bool): bool; override; |
|
procedure AfterConstruction(); override; |
|
procedure afterClose(closeResult: MMRESULT); override; |
|
property useSpeexDSP: bool read f_useSpeexDSP write f_useSpeexDSP; |
|
Try to use Speex DSP resampler if available. |
(c) 2012 Lake of Soft