Re: Streaming audio to built-in audio device
Re: Streaming audio to built-in audio device
- Subject: Re: Streaming audio to built-in audio device
- From: Jeff Moore <email@hidden>
- Date: Fri, 4 May 2007 15:30:55 -0700
On May 4, 2007, at 3:17 PM, B. Mitchell Loebel wrote:
Hello Mark:
Thank you. Permit me to structure my question better:
I write C. I do not write Objective C or C++.
All of our APIs are available in all three of those languages. Most of
our sample code is mostly C++ with sprinkles of ObjC here and there
for UI things.
One of the problems I have with Mac programming is that it seems as
if the Apple coding modality is for me to fully describe my sound
source and then they want to "pull" my data from my source, e.g.
file or buffer.
Yup. That's the basic mode of operation of our system. It's been that
way for a long time, in fact.
That means I have to go through a large learning curve to understand
their nomenclature. I don't have the time or desire to go through
that task.
I don't see how you can escape doing this. It seems fundamental to
pretty much every task that involves coding to somebody else's APIs.
I simple want to know the API to the Apple D/A which connects to
their built-in speakers so that I can "push" my PCM samples of a
given width (16 bits) and at a specific sample rate 16Ksamples/
sec ... no more, no less.
So given that such a best does not exist, you need to dive into the
sample apps and get familiar with how our APIs work.
In essence then, I need to cut through all the Apple whistles and
bells to work at a low level of code. I did check the reference you
suggested carefully and I didn't see anything that fit the problem I
described above. Ideas please ?????
You make the incorrect assumption that things get simpler as you get
lower in the layering. I can state that this is not the case. Our APIs
actually get simpler and do more for you as you move up the stack.
At any rate, I suspect that you'll want to take a look at this small
sample app to get you started: /Developer/Examples/CoreAudio/SimpleSDK/
DefaultOutputUnit
Yes, it is written in C++, but it is a very C-like C++.
At 01:54 PM 5/4/2007 -0700, Mark Pauley wrote:
Have you taken a look at
http://developer.apple.com/documentation/MusicAudio/Conceptual/CoreAudioOverview/index.html
?
_Mark
On May 4, 2007, at 1:34 PM, B. Mitchell Loebel wrote:
Hello:
I have an app that creates a PCM stream. Where can I find the API
(and perhaps some examples) to interface with the built-in D/A to
send my audio to the built-in speakers please?
---
B. Mitchell Loebel, Executive Director
408 425-9920
The Tech Startup Connection
(formerly The PARALLEL Processing Connection)
_______________________________________________
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
---
B. Mitchell Loebel, Executive Director
408 425-9920
The Tech Startup Connection
(formerly The PARALLEL Processing Connection)
_______________________________________________
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
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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