[patch] IOAudioEngine performErase()
[patch] IOAudioEngine performErase()
- Subject: [patch] IOAudioEngine performErase()
- From: Michel <email@hidden>
- Date: Mon, 28 Oct 2002 14:48:36 +0100
These modifications addresses an issue with IOAudioEngine : Access to/from
the sample buffer is handled by the subclasses clipOutputSamples /
convertInputSamples EXCEPT when IOAudioEngine::runEraseHead() runs, where a
basic bzero is used on it.
This behaviour prevents the subclass from masquerading the true format of
it's sample buffer, something that is mandatory for device where you can have
separate streams/engines exploiting separate channels in the DMA.
Another good reason is that it enforces proper encapsulation of that sample
buffer and allow subclasses to keep exclusive access.
This file contains the amended performErase, as well as a new 'default'
accessor used to performs the erase operation. Note that it uses the same
prototype as the clipOutputSamples/convertInputSamples.
Michel Pollet
[demime 0.98b removed an attachment of type text/x-c which had a name of IOAudioEngine-patch.cpp]
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.