Re: Actually moving data through the AudioDriver -- Still Stuck
Re: Actually moving data through the AudioDriver -- Still Stuck
- Subject: Re: Actually moving data through the AudioDriver -- Still Stuck
- From: email@hidden
- Date: Wed, 27 Jun 2001 09:50:54 -0700
Anyone have ideas, or even better, some sample code for this?
I've tried modifying the code some more and I'm still having problems
getting any data to the application. My app that opens the driver as an
"AudioDevice" does get calls to its inAudioIOProc, however all the data
that comes in through the buffers is just 0.0, instead of the data I put in
on the driver side.
I tried also to feed bogus data (Just filled my inputStream->sampleBuffer
with the same non-zero value, say .57, or 1.0) just in case my rendering is
messed up, but the application only receives 0.00 in the AudioIOProc.
I tried doing the timestamps at each block, and also doing the timestamp
each time I "Wrap" the buffer like it says it should be taken. This seems
to affect how quickly I get calls to my inAudioIOProc. Anything I'm
missing?
Thanks,
James
james.wihardja@conexant.c
om To: email@hidden
Sent by: cc:
coreaudio-api-admin@lists Subject: Actually moving data through the AudioDriver
.apple.com
06/25/01 06:03 PM
Hi Guys,
I'm basing my AudioDriver through the PhantomDriver template. Now, the
phantomdriver doesn't actually have any place where it puts data into the
stream buffers, so I'm not sure what the correct procedure is.
I assume it's supposed to work like this (for the RECORD pathway):
1) Hardware generates the samples/triggers an interrupt.
2) At this interrupt, put the samples generated by the hardware into the
current block of the samplebuffer.
(Should this be the inputStream->sampleBuffer)?
What is the mixBuffer, and the commonBuffer for?
3) Convert any integer samples from HW into Float samples.
4) Fill a BLOCK_SIZE worth of data on sampleBuffer, and do a
audioEngine->takeTimeStamp(true);
5) Update the current block +1
6) Wait for more samples and repeat the process.
When I do this, my application level driver receives all 0.0s instead of
the expected data. Is there anything I'm missing?
Thanks,
James
_______________________________________________
coreaudio-api mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/coreaudio-api