• 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
Stereo interleaved 16-bit format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stereo interleaved 16-bit format


  • Subject: Stereo interleaved 16-bit format
  • From: Austin Shoemaker <email@hidden>
  • Date: Mon, 26 Jan 2004 01:35:53 -0800

I just wanted to verify the equivalence of the following specifications in QuickTime and CoreAudio, respectively:

In QuickTime:
format = k16BitBigEndianFormat;
numChannels = 2
sampleSize = 16
sampleRate = rate44khz
sampleCount = ...

In CoreAudio:
mSampleRate = 44100
mFormatID = kAudioFormatLinearPCM
mFormatFlags = kLinearPCMFormatFlagIsSignedInteger |
kLinearPCMFormatFlagIsBigEndian
mFramesPerPacket = 1
mBytesPerFrame = 4
mBytesPerPacket = 4
mBitsPerChannel = 16

These two descriptions specify an identical audio format, right? If not, what am I missing? My project is working with mono streams, but things get distorted (raspy, 2x playback speed) when I try to make it work in interleaved stereo.

I must be doing something wrong, because it all seems right to me. I have verified that the SoundComponentData record I am getting matches the format I specified for it.

Thanks a lot!

Austin
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Stereo interleaved 16-bit format
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Altivec FFT
  • Next by Date: Re: Stereo interleaved 16-bit format
  • Previous by thread: Re: Altivec FFT
  • Next by thread: Re: Stereo interleaved 16-bit format
  • Index(es):
    • Date
    • Thread