Forwarding Audio from an Output Device to a different output device
Forwarding Audio from an Output Device to a different output device
- Subject: Forwarding Audio from an Output Device to a different output device
- From: Daniel Vollmer <email@hidden>
- Date: Mon, 12 Nov 2012 12:50:20 +0100
Hello all,
I decided I wanted to learn something about CoreAudio, and had an idea for a small project:
Essentially I want to present a (virtual) 6-Channel Output interface, the audio sent to which is
encoded into AC3 and then sent to a different output device as SP/DIF stream.[1]
From the AudioServerPlugIn sample NullAudio, I can quite easily present such an output device and
receive audio sent to it. My current question is now: How do I forward that audio (or a processed version
thereof) to a different, hopefully real output device?
The trouble lies with the following quote from AudioServerPlugIn.h
"First and foremost, an AudioServerPlugIn may not make any calls to the client HAL API in the
CoreAudio.framework. This will result in undefined (but generally bad) behavior."
What API can I use to open and forward data to a different device (inside the driver for my virtual output device)?
Do I need to use an IOKitUserClient, i.e. forward captured audio to a user-space client that can then sent
it using the normal CoreAudio API to a different output device?
Are there other options?
If anyone has any pointers or advice, I'd be very interested.
Thanks,
Daniel.
[1] I know I should be able to achieve the same goal using JackOSX and AC3Jack.
_______________________________________________
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