Synthesizing sound for the iPhone
Synthesizing sound for the iPhone
- Subject: Synthesizing sound for the iPhone
- From: Niklas Saers <email@hidden>
- Date: Fri, 19 Dec 2008 09:37:25 +0100
Hi guys,
I'm trying to get a sin tone at 415 Hz to play on the iPhone using
AudioQueue. The source (20kb) is here: http://saers.dk/~niklas/sin.tgz
I've based my code on Apple's SpeakHere, but since I generate my sound
I don't need/want any file loading. And after having stripped that
out, I just cannot get it to play: my callback routine is run once
when registerring and then never again. I think I do the correct steps:
- Set up the audioformat
- Create the audioqueue
- Allocate and initialize the audioqueue buffers
- Start playing
Is there anything I've missed? If these are the correct steps, would
anyone be so kind and download the source and have a look at it? More
or less the entire thing is in AudioPlayer.m
I'm looking forward to hearing your reply as this has been bothering
me for two months now, and this is my third unsuccessful implementation
Cheers
Nik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden