Re: SPDIF audio in DVD Player
Re: SPDIF audio in DVD Player
- Subject: Re: SPDIF audio in DVD Player
- From: Mark Cookson <email@hidden>
- Date: Mon, 01 Aug 2005 13:47:09 -0500
Your clipOutputSamples routine gets passed the raw 16-bit stereo data, you
don't need to do any conversion to it. Your buffer should be taking 1536
samples per buffer for AC-3.
I've noticed that, occasionally, I'll get a call to clipOutputSamples that
has a bogus number of samples, well in excess of 1536. In those cases, I
just immediately return from clipOutputSamples and there is no detectable
loss of audio (which is quite strange as well).
--
Mark Cookson
M-Audio, a part of Avid
225 Locust St.
Hudson, WI 54016
On 8/1/05 10:35 AM, "Fabian Renn" <email@hidden> wrote:
> i've gotten SPDIF audio to work on my device. Now i'm having problems
> with my clipping routine 'clipOutputSamples'. This routine always
> crashes. Now, in what format do i get the ac-3 samples. As 2 channel
> floats? Or as 16 bit ints? ( So, the IOProc format, not the physical
> format ) Second Question: When i use spdif output in the dvd player,
> playback really slows down ( to about 1 - 2 fps ) and the playback
> time starts going crazy. Do i need to have some sort of special
> sample buffer size ( like in VLC )? Are my inaccurate time stamps
> causing the trouble?
_______________________________________________
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