newBe Question about buffers...
newBe Question about buffers...
- Subject: newBe Question about buffers...
- From: R <email@hidden>
- Date: Sat, 29 Dec 2012 19:31:51 -0700
This question will be basic to most, but it has been bothering me for awhile. It has to do with buffers and floats.
I want to size a buffer.
The ASBD of the stream I'm dealing with is a follows:
- Linear PCM
- mFormatFlags=41, kAudioFormatFlagIsFloat, IsPacked, IsNoninterleaved
- 2 channels per frame
- 4 bytes per frame
Since the stream in nonInterleaved, I will need to have a mBuffers[0] and mBuffers[1] in by BufferList struct
I assume that I have 2 bytes for each channel (4 bytes per frame / 2)
Here is my question:
For kAudioFormatFlagIsSignedInteger, I size each buffer for an UInt16 (2 bytes = 16 bits)
But, for kAudioFormtFlagIsFloat, there is no such thing as a Float16. I have to size each channel for a Float32 (32 bits of space).
Here is my question, is the data value for each channel taking up only 16 bits of float data, but I have to size the buffer for Float32 and just assume wasted space?
Thanks for your help and patience -- Ron
å
_______________________________________________
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