clipOutputSamples question
clipOutputSamples question
- Subject: clipOutputSamples question
- From: Laurent Humbert <email@hidden>
- Date: Tue, 29 Oct 2002 14:12:00 +0100
Something weird's happening in my clipOutputSamples routine.
Calling my audio engine's getCurrentSampleFrame() method completely
locks up the machine, including the mouse cursor, and unloading the
driver by switching off the device is the only way to regain control.
My getCurrentSampleFrame override method looks exactely like that:
UInt32 MyAudioEngine::getCurrentSampleFrame()
{
return fCurFramePos;
}
If instead of calling getCurrentSampleFrame I directly access the
instance variable, then everything's fine.
I created another dummy MyAudioEngine method that simply returns a
UInt32, and I can call that one without any problem.
I'd like to understand what's going on, if it's a bug in IO/Kit or if
there are limitations in clipOutputSamples I am not aware of. I
noticed that the AppleUSBAudio driver does call
getCurrentSampleFrame() from clipOutputSamples, so I suppose it's
legal...
This is on 10.2.1
Thanks very much
Laurent
_______________________________________________
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.