Re: AUGraph mixer callback on inputs
Re: AUGraph mixer callback on inputs
- Subject: Re: AUGraph mixer callback on inputs
- From: Etienne Gignac Bouchard <email@hidden>
- Date: Fri, 15 May 2009 18:17:29 -0300
- Thread-topic: AUGraph mixer callback on inputs
Thank you for your reply Bill.
I have looked at OpenAL before and it does look pretty straight forward.
One question though: is it possible to call alSourcePlay() on multiple
sources and have them play at the same time ? (without any weird hardware
conflict or anything ?)
That might be a stupid question but the mixer audio unit was giving me a
warm and fuzzy feeling about this that I don't have with openAL...
Or can I add my openAL sources as input to my mixer ??
On 15/05/09 3:51 PM, "William Stewart" <email@hidden> wrote:
>
> On May 15, 2009, at 10:40 AM, Etienne Gignac Bouchard wrote:
>
>> Good day.
>>
>> I'm currently trying to play multiple wav files through a mixer and
>> with a
>> remoteIO as the output.
>>
>> Right now I have an AUGraph with a mixer connected to the remoteIO.
>> I also
>> have preloaded my (wav) files in memory, using
>> AudioFileReadPackets() from
>> the AudioFile class. All is well so far.
>>
>> But now I'm trying to bridge the gap between the audio buffers and
>> the mixer
>> inputs (16 of them).
>>
>> How should I proceed ? Should I assign a callback function on every
>> input
>> of the mixer ?
>
> yes - you have to
>
>> Too bad the AUAudioFilePlayer unit isn't available.
>
> good feedback :) - please file a bug to request this addition
>
>>
>>
>> How would I proceed to do such a thing ?
>
> so, every callback you set is attached to the input element of the
> mixer you specify. presumably you want one file on one input, so if
> you have 16 callbacks active, you have 16 files you want to playback
> simultaneously.
>
> So each callback will just read through the file associated with it.
>
> I'm just wondering though - you might that OpenAL is easier to use -
> it essentially does this, but gives you a separation between the
> buffers that you attach to a given source (think of a source as a
> single callback/input on the mixer, and the buffers are the bits of
> the file that you have read). It then allows you to pan (locate in 3D
> space) each source independently, changes its volume, and so forth. We
> have examples (oalTouch) that you might want to have a look at
>
> Bill
>
>>
>>
>> Again, thank you.
>>
>> Etienne
>>
>>
>> _______________________________________________
>> 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
>
_______________________________________________
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