Re: Newbie: Any sound coming out of the built-in speakers?
Re: Newbie: Any sound coming out of the built-in speakers?
- Subject: Re: Newbie: Any sound coming out of the built-in speakers?
- From: Chris Reed <email@hidden>
- Date: Sun, 23 May 2004 16:50:07 -0500
Unfortunately, what you want to do is not possible with the current
API. The outputs of individual applications' IOProcs are mixed within
the kernel by the audio device driver, and there is no way to access
the mixed data before it hits the hardware. This will probably never be
added, because it would have too much of a performance penalty.
(It is possible to do this with a special driver or patching, but
that's not what you were asking for.)
-chris
On May 22, 2004, at 12:59 PM, Edison Thomaz wrote:
>
Hi everyone,
>
>
I am very new to Core Audio and I want to write a simple app that
>
tells me whether there's any sound coming out of the built-in
>
speakers. I've been looking for VU Meter examples but the ones I found
>
were meters for the sound generated by the applications themselves and
>
not for the system output. I think that the AudioDeviceRead call might
>
be what I need, if I pass the default output as the "device". But the
>
function looks a bit complicated, having to set the AudioTimeStamp and
>
whatnot. Is there any code out there that does anything similar to
>
this that I can look at? Any help would be greatly appreciated!
>
>
Thanks,
>
>
Thomaz
>
>
p.s. My apologies if this question has already been answered here. I
>
looked in the archives but couldn't find anything that helped me much.
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.