Maybe OT: Speed and Sampler
Maybe OT: Speed and Sampler
- Subject: Maybe OT: Speed and Sampler
- From: Justin Bakse <email@hidden>
- Date: Tue, 25 Feb 2003 01:44:40 -0600
Hello All,
I have recently begun working with some core audio
programming after taking some time to get used to cocoa and osx. I'm
sorry if this is OT, but since my app mostly uses core audio it
seemed like a good first step. I'm building a simple app that reads
in the samples form the default device input via coreaudio and then
renders a very small live(ish) view of the data in custom view. The
program works great, but requires a bit more of the processor than
i'd like (15% - 20%). I figured that the two places that might be be
slowing it up are the ioproc that copies the data into an array
(mostly becaused it is called so often) and the drawRect function. To
find out, i ran sampler on my app. and am confused by the results. i
find that two functions account for 99%:
mach_msg_trap
and
semaphore_timedwait_signal_trap
after that my redraw is a distant third.
I'm not sure what those two functions are, though i guess the second
one has to do with my setting a timer. to redraw every .01 seconds.
Do either of them have anything to do with coreaudio? Are those just
overhead that come with making applications in cocoa? Are they only
such a big deal, since my app is doing so little? Again sorry about
it being off topic, but since i don't know what they are, i'm not
sure what topic to look for help in.
Thanks-justin
_______________________________________________
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.