Re: Device Sync (was Re: Multiple HALAOUs don't get along?)
Re: Device Sync (was Re: Multiple HALAOUs don't get along?)
- Subject: Re: Device Sync (was Re: Multiple HALAOUs don't get along?)
- From: Dave Addey <email@hidden>
- Date: Mon, 26 Jul 2004 16:32:14 +0100
Hi Bill,
I didn't make it to WWDC... Was there a solution for this demonstrated at
WWDC, and if so, is it available to download anywhere?
Thanks,
Dave.
>
From: William Stewart <email@hidden>
>
Date: Fri, 18 Jun 2004 14:27:29 -0700
>
To: Dave Addey <email@hidden>
>
Cc: email@hidden
>
Subject: Re: Device Sync (was Re: Multiple HALAOUs don't get along?)
>
>
On 18/06/2004, at 9:19 AM, Dave Addey wrote:
>
>
> Hi Bill,
>
>
>
> Thanks for clearing that up - and I think I understand the reasons
>
> why, too.
>
> I'm assuming this would be the same if you used a DefaultOutputUnit for
>
> output rather than one of the AUHALs, too.
>
>
>
> Just to be sure I'm getting this right, in my case the source audio
>
> data
>
> coming into the MatrixMixer would be coming from a file, not from an
>
> input
>
> AUHAL... it's just that I want *2* output buses on the output of the
>
> MatrixMixer, each going to an AUHAL for a different output device. So
>
> the
>
> two AUHALs aren't connected to each other, just both to the
>
> MatrixMixer's
>
> two output buses. I think this is still the same limitation?
>
>
Yes - as the two different devices (one for each AUHAL) is going to
>
call out on a separate thread... This could get really knarly if you do
>
this way as you will at some point have two threads in the MatrixMixer
>
at the same time. I wouldn't recommend doing that... :-)
>
>
Rather I think you'd need to separate the thread that calls your matrix
>
mixer's outputs - then you'd have to buffer that output for each
>
device...
>
>
Its rather knarly - did I mention WWDC :-)
>
>
> Just a thought, but will the sample code you mentioned be an extension
>
> of
>
> the MatrixMixerTest project, with (for example) two output buses
>
> rather than
>
> one? Would be great for me if it is :-)
>
>
The Matrix Mixer is fine to have as many output buses as you like - but
>
all bets are off if you call any of those outputs from a different
>
thread than another one... (especially if you end up having those two
>
threads in the matrix at the same time!)
>
>
Bill
_______________________________________________
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.