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
|