Re: CoreAudio kernel interface
Re: CoreAudio kernel interface
- Subject: Re: CoreAudio kernel interface
- From: Daniel Mack <email@hidden>
- Date: Fri, 17 Jun 2005 19:09:03 +0200
On Fri, Jun 17, 2005 at 06:59:36PM +0200, Daniel Mack wrote:
> #define NUM_SAMPLE_FRAMES 16384
> #define NUM_CHANNELS 2
> #define BIT_DEPTH 16
> #define BYTES_PER_SAMPLE (BIT_DEPTH / 8)
>
> In my AudioEngine, I created the IOAudioStreams and called
>
> audioStream->setSampleBuffer(sampleBuffer, sampleBufferSize);
>
> on them, where sampleBufferSize is (NUM_CHANNELS * NUM_SAMPLE_FRAMES * BYTES_PER_SAMPLE).
I forgot to mention that I - just like in the examples - call
setNumSampleFramesPerBuffer(NUM_SAMPLE_FRAMES);
in my AudioEngine.
> The examples and the documentation both tell me that I need to call
> takeTimeStamp() every time the buffer wraps around.
Which is - in my case - when flip from position NUM_SAMPLE_FRAMES-1 to 0.
Daniel
_______________________________________________
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