Re: Data Types for Extracting samples from Audio Buffer
Re: Data Types for Extracting samples from Audio Buffer
- Subject: Re: Data Types for Extracting samples from Audio Buffer
- From: Graham Cox <email@hidden>
- Date: Tue, 7 Oct 2008 00:01:19 +1100
On 6 Oct 2008, at 11:45 pm, Joseph Ayers wrote:
Note the occurrence of samples with the value of 0 alternating with
samples that are reasonable. However,
this alternation is not rigid as the 0's can be substituted with
reasonable numbers.
Any idea what's going on here?
Are you *sure* that the samples are 16 bit values? Maybe they're 32-
bit values, and what you're seeing is the 2 high bytes of each sample
being set to zero, but not always.
Where has the data come from?
If they are 32-bit, make your pointers unsigned long* and divide the
bytecount by 4. Also use [NSNumber numberWithUnsignedLong:];
hth,
Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden