PlayThru Test (was: Re: daisy)
PlayThru Test (was: Re: daisy)
- Subject: PlayThru Test (was: Re: daisy)
- From: Lieven Dekeyser <email@hidden>
- Date: Fri, 23 Nov 2001 13:02:51 +0100 (CET)
>
> I am trying to get "soft play thru" to work in the daisy example..
>
>
>
> In softPlayThruIOProc..
>
> outOutputData->mNumberBuffers is 0
>
> .. the output device is not running and I cannot use
>
> AudioDeviceSetProperty
>
> to set the running property (outWritable is NO)
>
>
>
> So, how can I set the output device to running so that input can be
>
> piped back to output?
>
>
>
also.. outBufList->mBuffers[0].mData is 0x0
>
from my default output device (i was trying to pass it in as the "client
>
data" arg)
I'm not sure, but it could be that your output device is not the same as
your input device. You then need to copy the buffers you get from the
input device in a queue and then copy them to your output device.
I've just put together some sample code to do this. you can find it here:
http://studwww.rug.ac.be/~lbdkeyse/softs/opensource/PlayThru_Test.tgz
let me know if this works on your machine
Greetz,
Lieven
ps: thanks to Jeff and everyone on this list for your help :-)
References: | |
| >Re: daisy (From: David Shaffer <email@hidden>) |