initHardware
This function is called by start() to provide a convenient place for the subclass to perform its hardware initialization.
Declaration
virtual bool initHardware(
IOService *provider);Parameters
- provider:
The service provider numb for this audio engine - typically the IOAudioDevice.
Return Value
Returns true if the hardware was successfully initialized.
Overview
Upon return from this function, all IOAudioStreams and IOAudioControls should be created and the audio engine should be ready to be started when a client requests that playback begin.
See Also
Miscellaneous
addAudioStreamaddTimerclearAllSampleBuffersclientClosedconvertInputSamplesVBRcreateDictionaryFromSampleRatecreateSampleRateFromDictionaryeraseOutputSamplesfreegetAttributeForConnectiongetCommandGategetCurrentSampleFramegetRunEraseHeadgetSampleRategetStategetStatusgetTimerIntervalgetWorkLoopinitinitKeysnewUserClientperformAudioEngineStartperformAudioEngineStopperformEraseperformFlushregisterServiceremoveTimerresetStatusBuffersetAttributeForConnectionsetClockDomainsetClockIsStablesetInputSampleOffsetsetMixClipOverheadsetOutputSampleOffsetsetRunEraseHeadsetSampleLatencysetSampleRatesetStatestart(IOService *)start(IOService *, IOAudioDevice *)startAudioEnginestopstopAudioEnginetimerCallbacktimerFired