setting same IOProc more than once?
setting same IOProc more than once?
- Subject: setting same IOProc more than once?
- From: Gary Scavone <email@hidden>
- Date: Tue, 1 Oct 2002 11:20:51 -0700 (PDT)
I'm trying to add the same IOProc for the same device more than once,
but AudioDeviceAddIOProc() returns a
"kAudioHardwareIllegalOperationError". What I'm trying to do probably
seems kind of stupid, but within the multiple stream scheme that I've
setup in my cross-platform realtime audio input/output c++ class, it
makes sense. This single IOProc uses distinct client data to
subsequently call the routine which handles the input/output.
I've explored various ways around this but I keep running into
problems. Is there a good reason why the CoreAudio API doesn't allow
this? Is there a way to "trick" it into believing that I'm using
different IOProcs? I tried using distinct pointers to the same
routine, but it apparently dereferences the pointer.
-------------------------------------------------
Gary Scavone
Center for Computer Research in Music & Acoustics
Stanford University
email@hidden
http://www-ccrma.stanford.edu/~gary/
-------------------------------------------------
_______________________________________________
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.