So here’s what I’m working on at the moment, from an article for mystery client who I hope to reveal soon:

Yep, if latency is buffer duration + inherent hardware latency, then this app needs just 29 ms to get the last sample in its buffer out the headphones or speaker. And really not that hard once you reacquaint your mind with old fashioned C.
A world of difference from the awful time I had on Swing Hacks trying to use, explain, and justify javax.media.sound.sampled, which has a push metaphor, requiring you shove samples into an opaque buffer whose size is unknown and unknowable. To say nothing of Java Sound’s no-op’ed DataLine.getLevel(). Analogy: Core Audio is The Who. Java Sound is The Archies.
Next up, working through the errata on iPhone SDK Development, now that we have a first full draft in tech review.






2 Comments
1. emailtoid.net/i/362895a0/… replies at 20th April 2009 um 2:08 pm :
hello,
I should to use Core Audio to produce a signal from the speaker at a fixed frequency. I’ve tried to include CoreAudio framework but it does not contains the CoreAudio.h headers but only the CoreAudioTypes.h. Can you point me to the right direction in order to include the coreaudio framework.
2. cadamson replies at 21st April 2009 um 5:45 am :
Have you added AudioToolbox.framework to the project?
Leave a comment
You must be logged in to post a comment.