• 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: simplest way to send buffers to hardware on a mac?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simplest way to send buffers to hardware on a mac?


  • Subject: Re: simplest way to send buffers to hardware on a mac?
  • From: Morgan Packard <email@hidden>
  • Date: Sun, 25 Mar 2012 00:26:22 -0400

Thanks. Almost there with audio queue services. I can make a loud hissing noise now, so I'm doing something right at least!

Sent from my iPhone

On Mar 24, 2012, at 9:03 PM, Chris Adamson <email@hidden> wrote:

I like Kyle's answer for stepping through your options in increasing order of difficulty.

The most direct analogue to the RemoteIO unit on the Mac is the AUHAL. It's a little harder to use on Mac because while iOS can only ever have one audio device, Mac can have many, so you can either get the default output unit (which is whatever is selected in System Preferences), if you want to use a specific device, you need to do a little extra work inspect hardware, get that device, and then get AUHAL from that.

-Chris

Sent from my iPad

On Mar 24, 2012, at 8:45 PM, Morgan Packard <email@hidden> wrote:

Thanks Kyle.
-Morgan

On Sat, Mar 24, 2012 at 8:15 PM, Kyle Sluder <email@hidden> wrote:
On Mar 24, 2012, at 3:48 PM, Morgan Packard <email@hidden> wrote:

> Hello all,
> In iOS, I use the RemoteIO audio unit. Does this exist on the mac? If not, what's the easiest way to pipe audio to the speakers on a mac?

Depends on what specifically you want to do. Do you already have the samples in buffers? If so, is that because you assumed you needed to do that in order to play sound?

NSSound will take care of the entire process of loading and playing an audio file.

AVFoundation operates at a similar conceptual level but gives you richer control if you want it.

If you have audio in buffers because the nature of your app requires that, Audio Queue Services is the easiest way to put those buffers out to the hardware. AudioFile will help you get the data from a file into buffers in the first place.

If you want to perform effects, Audio Units are the way to go. Audio Graphs make working with Audio Units easier and more powerful.

--Kyle Sluder
 _______________________________________________
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



--
===============
Morgan Packard
cell: (720) 891-0122
aim: mpackardatwork

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)

This email sent to email@hidden
 _______________________________________________
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

References: 
 >simplest way to send buffers to hardware on a mac? (From: Morgan Packard <email@hidden>)
 >Re: simplest way to send buffers to hardware on a mac? (From: Kyle Sluder <email@hidden>)
 >Re: simplest way to send buffers to hardware on a mac? (From: Morgan Packard <email@hidden>)
 >Re: simplest way to send buffers to hardware on a mac? (From: Chris Adamson <email@hidden>)

  • Prev by Date: Re: simplest way to send buffers to hardware on a mac?
  • Next by Date: iOS and using Midi events in a custom effect
  • Previous by thread: Re: simplest way to send buffers to hardware on a mac?
  • Next by thread: iOS and using Midi events in a custom effect
  • Index(es):
    • Date
    • Thread