Re: CDDA and AIFF again
Re: CDDA and AIFF again
- Subject: Re: CDDA and AIFF again
- From: Bill Stewart <email@hidden>
- Date: Sat, 09 Feb 2002 18:23:30 -0800
After you've passed the last buffer to the output unit just call its stop
method - that will stop it - this *can* be called from the I/O thread...
Bill
on 9/2/02 5:32 PM, marquis logan wrote:
>
On Thursday, February 7, 2002, at 02:46 PM, Lubor Prikryl wrote:
>
>
> Hi,
>
> I tried to play the CDDA file double-buffering the data, converting
>
> from SInt16 to Float32 and filling HAL output buffers, which works
>
> correctly with AIFF. I swapped the hi and lo byte of each SInt16
>
> (casting to unsigned, of course) when reading 'sowt' format from CD.
>
>
you might try using the audio converter api and let that handle the byte
>
swapping stuff. it worked well for me using both the hal and the
>
default output unit + an audio converter.
>
>
my one question would be what's the safest/cleanest way to stop it after
>
the track is done. is there a way to tell the hal or dou "stop after
>
this buffer" or "stop after xxx samples". i generally pass back a
>
couple empty buffers and then signal another thread to stop them.
>
>
nibs
>
_______________________________________________
>
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.
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"We'll talk about it later...."
"When?"
"In a future life when we're both cats"
__________________________________________________________________________
_______________________________________________
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.