|
Wave Arts VQE
1.00
Voice Quality Enhancement
|
Core Audio sample rate conversion device. More...
#include <WadMacHAL.h>
Public Member Functions | |
| int | Open (WadParam *param, WadCallbackFn *inFn, WadCallbackFn *outFn, void *arg) |
| Open devices for streaming. | |
| void | Close () |
| Close devices and release memory. | |
Protected Attributes | |
| WadResPort * | resPort |
| sample rate conversion port | |
| bool | openingViaResPort |
| true if Open is being called recursively | |
| bool | closingViaResPort |
| true if Close is being called recursively | |
| WadConvPort * | convPort |
| format conversion port | |
Core Audio sample rate conversion device.
WadResMacHAL is a derived class that implements sample rate conversion when the Core Audio device can't be opened at the desired sampling rate. WadMacHAL handles channel and format conversions but not sample rate conversion.
| void WadResMacHAL::Close | ( | ) | [virtual] |
Close devices and release memory.
Close the devices and release all memory associated with streaming. Different devices can be re-opened with different parameters without having to recreate the WaAudioDev object.
Reimplemented from WadMacHAL.
| int WadResMacHAL::Open | ( | WadParam * | param, |
| WadCallbackFn * | inFn, | ||
| WadCallbackFn * | outFn, | ||
| void * | arg | ||
| ) | [virtual] |
Open devices for streaming.
Open devices for streaming with provided parameters. Asynchronous callbacks fetch and deliver sample buffers: inFn delivers input sample buffers and outFn fetches output sample buffers. Streaming directions are determined by valid device IDs in parameter structure, at least one direction must be enabled. Pass NULL for callback if that direction is not enabled.
| [in] | param | Stream parameters |
| [in] | inFn | Input callback function, or NULL |
| [in] | outFn | Output callback function, or NULL |
| [in] | arg | Argument to callbacks |
Reimplemented from WadMacHAL.
1.7.5.1