• 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
Re: Beep ( duration, frequency )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beep ( duration, frequency )


  • Subject: Re: Beep ( duration, frequency )
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 23 Sep 2015 21:33:53 -0700

> On Sep 23, 2015, at 9:05 PM, email@hidden wrote:
>
> There is also AVAudioEngine added in Yosemite.
> It's a higher level Objective-C API around Core Audio.
> The docs still kind of don't tell you much and at times the API makes more sense if you know a little about Core Audio but the friction is a lot less C level.

Nice! I hadn’t heard of this before. It looks equivalent to the AUGraph API but much easier to use.

Rags, if you want to generate and play waveforms, it looks like you’d create an AVAudioPCMBuffer, fill it with audio samples (like series of 0, 0, 0, 1, 1, 1, … for a square wave), then connect that to an AVAudioPlayerNode and that to an AVAudioMixerNode.

> The truth is there's a lot you do need to know to do audio. Just like video or databases or networking or almost anything.

I’ve found audio to be one of the hardest areas to program to, partly because the data formats are complex and partly because a lot of stuff needs to run in real-time, but mostly because the APIs have been very difficult to use. Apple’s been doing a great job with AVFoundation; I just hope they find the time to document the newer parts properly.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Beep ( duration, frequency ) (From: "Raglan T. Tiger" <email@hidden>)
 >Re: Beep ( duration, frequency ) (From: email@hidden)
 >Re: Beep ( duration, frequency ) (From: "Raglan T. Tiger" <email@hidden>)
 >Re: Beep ( duration, frequency ) (From: Jens Alfke <email@hidden>)
 >[ALERT:Possible Phishing] Re: Beep ( duration, frequency ) (From: email@hidden)

  • Prev by Date: Re: [ALERT:Possible Phishing] Beep ( duration, frequency )
  • Next by Date: App Slicing and Bitcode relationship
  • Previous by thread: Re: [ALERT:Possible Phishing] Beep ( duration, frequency )
  • Next by thread: App Slicing and Bitcode relationship
  • Index(es):
    • Date
    • Thread