File input to AUs...
File input to AUs...
- Subject: File input to AUs...
- From: Tommy Braas <email@hidden>
- Date: Thu, 26 Apr 2007 01:20:06 +1000
I am moving my code from direct using the CoreAudio APIs directly, to
using AUs. In this endeavor, I need to play audio samples on the
default output device, via some filters, read from an audio file. The
requirement of running on 10.3 precludes me from using the fine
AudioFilePlayer AU.
I am wondering what the render callback on node 1 below is expecting
in terms of the audio data provided by me, read directly from the
audio file? Interleaved or non-interleaved? Should I perhaps not use
the Converter AU at all, and just feed a AudioConverter directly?
What's the recommended way of doing it?
Another question; why does the Default Ouput AU report different
sample rates for input and output scopes? Verified that the output
scope matched AMS setting.
This is the setup:
AudioUnitGraph 0x28C3684:
Member Nodes:
node 1: desc aufc conv appl, instance 0x810009 O I
node 2: desc aufc vari appl, instance 0x81000A O
node 3: desc auou def appl, instance 0x81000B O I
Connections:
node 1 bus 0 => node 3 bus 0
Converter AU
Input: Interleaved format matching audio file
Output: Non-interleaved format matching input on default Output unit
Varispeed AU (not connected)
Input: Non-interleaved format matching input on default Output unit,
but file sample rate
Output: Non-interleaved format matching input on default Output unit
Default Ouput AU
Input: the basis for the format used in the graph
Output: whatever the format is for the device in question
Thanks,
\tommy
_______________________________________________
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