Actually moving data through the AudioDriver
Actually moving data through the AudioDriver
- Subject: Actually moving data through the AudioDriver
- From: email@hidden
- Date: Mon, 25 Jun 2001 18:03:53 -0700
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