Glitches when using "Sound Manager" APIs under Mac OS X
Glitches when using "Sound Manager" APIs under Mac OS X
- Subject: Glitches when using "Sound Manager" APIs under Mac OS X
- From: Sylvain Demongeot <email@hidden>
- Date: Thu, 11 Dec 2003 17:49:20 +0100
Hello.
My app uses the "Sound Manager" APIs (SndDoCommand) to output sounds under
Mac OS X.
I get glitches under Panther when the CPU is very active (eg when
minimizing).
This is not a problem with the feeder thread's priority (the buffers are
large enough so the feeder thread is never too late).
Rather, I would say the priority of the Sound Manager (or QuickTime if you
prefer) itself is too low to get the "bufferCmd" job done in time.
This is very weird -- it used to work quite well.
Apple's own sample code, "SoundPlayer", suffers from glitches (even when
buffers are set large enough for cycles of more than 1 second).
On the other hand, the "Million Monkeys" Core Audio sample works perfectly
in the same situations (the feeder thread must have at least a fixed
priority).
Does this mean QuickTime feeds Core Audio with a thread with low priority?
Are the Sound Manager APIs useless under Panther? Is Core Audio required for
glitch-free sound output?
Thanks for your thoughts,
Sylvain
--
Sylvain Demongeot - The Wild Bits
http://www.wildbits.com/
_______________________________________________
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.