eraseOutputSamples
This function allows for the actual erasing of the mix and sample buffer to be overridden by a child class.
Declaration
virtual IOReturn eraseOutputSamples(
const void *mixBuf,
void *sampleBuf,
UInt32firstSampleFrame,
UInt32numSampleFrames,
const IOAudioStreamFormat *streamFormat,
IOAudioStream *audioStream);Parameters
- mixBuf:
Pointer to the IOAudioFamily allocated mix buffer.
- sampleBuf:
Pointer to the child class' sample buffer.
- firstSampleFrame:
Index to the first sample frame to erase.
- numSampleFrames:
Number of sample frames to erase.
- streamFormat:
Format of the data to be erased.
- audioStream:
Pointer to stream object that corresponds to the sample buffer being erased.
Return Value
Must return kIOReturnSuccess if the samples have been erased.
See Also
Miscellaneous
addAudioStreamaddTimerclearAllSampleBuffersclientClosedconvertInputSamplesVBRcreateDictionaryFromSampleRatecreateSampleRateFromDictionaryfreegetAttributeForConnectiongetCommandGategetCurrentSampleFramegetRunEraseHeadgetSampleRategetStategetStatusgetTimerIntervalgetWorkLoopinitinitHardwareinitKeysnewUserClientperformAudioEngineStartperformAudioEngineStopperformEraseperformFlushregisterServiceremoveTimerresetStatusBuffersetAttributeForConnectionsetClockDomainsetClockIsStablesetInputSampleOffsetsetMixClipOverheadsetOutputSampleOffsetsetRunEraseHeadsetSampleLatencysetSampleRatesetStatestart(IOService *)start(IOService *, IOAudioDevice *)startAudioEnginestopstopAudioEnginetimerCallbacktimerFired