• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Actually moving data through the AudioDriver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: MIDI device "driver" how-to?
  • Next by Date: More Than One AudioHardwareAddPropertyListener
  • Previous by thread: AudioDeviceStart after device stop notification
  • Next by thread: More Than One AudioHardwareAddPropertyListener
  • Index(es):
    • Date
    • Thread