• 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
Re: Data Types for Extracting samples from Audio Buffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Data Types for Extracting samples from Audio Buffer
      • From: Joseph Ayers <email@hidden>
References: 
 >Data Types for Extracting samples from Audio Buffer (From: Joseph Ayers <email@hidden>)
 >Re: Data Types for Extracting samples from Audio Buffer (From: Jacob Lukas <email@hidden>)
 >Re: Data Types for Extracting samples from Audio Buffer (From: Joseph Ayers <email@hidden>)
 >Re: Data Types for Extracting samples from Audio Buffer (From: Graham Cox <email@hidden>)
 >Re: Data Types for Extracting samples from Audio Buffer (From: Joseph Ayers <email@hidden>)

  • Prev by Date: Master-Detail Interface Examples
  • Next by Date: Re: Data Types for Extracting samples from Audio Buffer
  • Previous by thread: Re: Data Types for Extracting samples from Audio Buffer
  • Next by thread: Re: Data Types for Extracting samples from Audio Buffer
  • Index(es):
    • Date
    • Thread