#include <dxd_audio.h>
|
::IOReturn | clipOutputSamples (const void *src, void *dst, UInt32 offset, UInt32 frames, const::IOAudioStreamFormat *fmt,::IOAudioStream *stream) |
|
::IOReturn | convertInputSamples (const void *src, void *dst, UInt32 offset, UInt32 frames, const::IOAudioStreamFormat *fmt,::IOAudioStream *stream) |
|
UInt32 | getCurrentSampleFrame () |
| realtime sample frame hardware position
|
|
::IOReturn | getLoopCountAndTimeStamp (UInt32 *loops,::AbsoluteTime *timestamp) |
|
bool | initHardware (::IOService *provider) |
| configure IOAudioEngine and setup streams
|
|
::IOReturn | performAudioEngineStart () |
|
::IOReturn | performAudioEngineStop () |
|
::IOReturn | performFormatChange (::IOAudioStream *stream, const::IOAudioStreamFormat *fmt, const::IOAudioSampleRate *clk) |
|
◆ clipOutputSamples()
::IOReturn dxd::engine::clipOutputSamples |
( |
const void * | src, |
|
|
void * | dst, |
|
|
UInt32 | offset, |
|
|
UInt32 | frames, |
|
|
const::IOAudioStreamFormat * | fmt, |
|
|
::IOAudioStream * | stream ) |
|
inline |
◆ convertInputSamples()
::IOReturn dxd::engine::convertInputSamples |
( |
const void * | src, |
|
|
void * | dst, |
|
|
UInt32 | offset, |
|
|
UInt32 | frames, |
|
|
const::IOAudioStreamFormat * | fmt, |
|
|
::IOAudioStream * | stream ) |
|
inline |
◆ getCurrentSampleFrame()
UInt32 dxd::engine::getCurrentSampleFrame |
( |
| ) |
|
|
inline |
realtime sample frame hardware position
◆ getLoopCountAndTimeStamp()
::IOReturn dxd::engine::getLoopCountAndTimeStamp |
( |
UInt32 * | loops, |
|
|
::AbsoluteTime * | timestamp ) |
|
inline |
◆ initHardware()
bool dxd::engine::initHardware |
( |
::IOService * | provider | ) |
|
|
inline |
configure IOAudioEngine and setup streams
retrieve support range of sample rates retrieved from the device driver Create an IOAudioStream for each buffer and add it to this audio engine iterate thru all format descriptions from USB bus driver, select and add to CoreAudio's list of available formats
creates and initializes the IOAudioStream
set latencies and CoreAudio safty offsets
- Todo
- compute latencies and CoreAudio safty offsets
- Todo
- release audiostream
◆ performAudioEngineStart()
::IOReturn dxd::engine::performAudioEngineStart |
( |
| ) |
|
|
inline |
◆ performAudioEngineStop()
::IOReturn dxd::engine::performAudioEngineStop |
( |
| ) |
|
|
inline |
◆ performFormatChange()
::IOReturn dxd::engine::performFormatChange |
( |
::IOAudioStream * | stream, |
|
|
const::IOAudioStreamFormat * | fmt, |
|
|
const::IOAudioSampleRate * | clk ) |
|
inline |
◆ device
The documentation for this class was generated from the following file: