Re: ReflectorDriver
Re: ReflectorDriver
- Subject: Re: ReflectorDriver
- From: Jeff Moore <email@hidden>
- Date: Tue, 6 Dec 2005 11:56:34 -0800
On Dec 6, 2005, at 9:09 AM, Kevin Kicklighter wrote:
Hi all, I'm using the AudioReflectorDriver and see some strange
behavior, (and things I don't understand).
When I play a .wav file or any other file that has linear pcm
encoded in it, to the "ReflectorDriver" device it never receives
all of the data. I've determined this by looking at the data in
clipOutputSamples. It never receives all of the data, but some of
it, and it always prints the last block of data for some reason.
That seems odd. The clipOutputSamples() method is called by the HAL
as the last bit of work on a given IO cycle. If it isn't seeing all
the data, it likely means that the app is not sending it for some
reason.
I've tried different byte rates, sampling rates etc, but I can't
seem to get all of the pcm data.
I get the same results using NSSound and iTunes.
Any ideas why I can't capture all of my pcm data there?
How are you checking for the data? You can't call IOLog from there
without destabilizing the timing of things. Have you otherwise
modified the code?
At any rate, I've done a fair amount of work with the reflector, and
while it does have some issues with the erase head being a bit too
eager when the system is under a load, it has generally been reliable.
Also, in attempting to get my problem solved, I tried using the
AUHAL example ComplesPlayThru. How do I set it up to "listen" to
the Default output (iTunes is playing to) and capture the samples?
You just choose the device that iTunes is using with the pop-up or
whatever.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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