• 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: AudioConverter MP3 decode questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverter MP3 decode questions


  • Subject: Re: AudioConverter MP3 decode questions
  • From: William Stewart <email@hidden>
  • Date: Tue, 14 Mar 2006 12:29:20 -0800

Vince,

Thought I'd also forward this to the list...

On 14/03/2006, at 12:18 PM, Vince Shumaker wrote:

Thanks everyone for the quick replies!

So following up on my original post...
What does a packet represent to the AudioConverter?

For any format its basically a slice of time. So, for linear PCM, a packet is all of the time-adjacent samples... That is, for a stereo lpcm stream, it would be the left and right sample for any given time (we call this left/right sample pair a frame). For a compressed bit stream, it is a discreet "blob" of data that can't be broken down without a decoder.


How time a given packet represents is described by the ASBD - most formats specify a frames per packet (for linear pcm this is 1, for compressed its generally > 1). For instance, AAC typically represents its data as 1024 frames/packet - apple lossless as 4096, etc...

A parser can tell the difference between these two by examining the bitsPerSample field - if this is non-zero then you can go into the packet further (linear pcm, pwm), it is is zero, then as a generic parser you can't - you then deal with these blobs of data which is the packet.

Bill

Is it frames per
packet... samples per frame... or does it dependend on the data data
format?

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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


  • Follow-Ups:
    • Re: AudioConverter MP3 decode questions
      • From: "Vince Shumaker" <email@hidden>
References: 
 >AudioConverter MP3 decode questions (From: "Vince Shumaker" <email@hidden>)
 >Re: AudioConverter MP3 decode questions (From: "Alexander v. Below" <email@hidden>)
 >Re: AudioConverter MP3 decode questions (From: philippe wicker <email@hidden>)
 >Re: AudioConverter MP3 decode questions (From: "Alexander v. Below" <email@hidden>)
 >Re: AudioConverter MP3 decode questions (From: William Stewart <email@hidden>)

  • Prev by Date: Re: AudioConverter MP3 decode questions
  • Next by Date: Re: AudioConverter MP3 decode questions
  • Previous by thread: Re: AudioConverter MP3 decode questions
  • Next by thread: Re: AudioConverter MP3 decode questions
  • Index(es):
    • Date
    • Thread