• 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
AudioConverter and unpacked data steams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioConverter and unpacked data steams


  • Subject: AudioConverter and unpacked data steams
  • From: patrick machielse <email@hidden>
  • Date: Thu, 06 Sep 2012 23:06:32 +0200

I'm using AudioConverter to convert an non-packed, non-interleaved stream of int data (from a FLAC file) to a packed, non-interleaved stream of floats (for an internal buffer).

FLAC stream:
AudioStreamBasicDescription:
----------------------------
       mSampleRate : 8000.000000
         mFormatID : 1819304813
      mFormatFlags : 36
   mBytesPerPacket : 4
  mFramesPerPacket : 1
    mBytesPerFrame : 4
 mChannelsPerFrame : 2
   mBitsPerChannel : 16

BUFFER stream:
AudioStreamBasicDescription:
----------------------------
       mSampleRate : 44100.000000
         mFormatID : 1819304813
      mFormatFlags : 41
   mBytesPerPacket : 4
  mFramesPerPacket : 1
    mBytesPerFrame : 4
 mChannelsPerFrame : 2
   mBitsPerChannel : 32

On 10.8 this works nicely. However, on 10.6 the call to AudioConverterNew() using these 2 ASBDs returns 'fmt?'.

My suspicion is that unpacked data streams are not supported on some (all?) pre-10.8 systems. Is there any way to find this information in the documentation, or is there API that could answer this?

AudioFormatGetProperty() can get me a list of supported encode / decode formatIDs, but obviously 1819304813 (lpcm) is supported. I need to know which flags are supported with this IDs…

Thanks,

p.
--
Patrick Machielse
Hieper Software

http://www.hieper.nl
email@hidden


 _______________________________________________
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 and unpacked data steams
      • From: patrick machielse <email@hidden>
  • Prev by Date: How to detect AudioQueue buffer underrun?
  • Next by Date: iOS: -1500 from AudioServicesCreateSystemSoundID
  • Previous by thread: How to detect AudioQueue buffer underrun?
  • Next by thread: Re: AudioConverter and unpacked data steams
  • Index(es):
    • Date
    • Thread