• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Synthesizing sound for the iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Synthesizing sound for the iPhone
      • From: Marc Vaillant <email@hidden>
  • Prev by Date: Re: AVAudioPlayer
  • Next by Date: Re: Synthesizing sound for the iPhone
  • Previous by thread: Re: hardcoded microphone buffering in iPhone?
  • Next by thread: Re: Synthesizing sound for the iPhone
  • Index(es):
    • Date
    • Thread