• 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
setting AudioStreamBasicDescription
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting AudioStreamBasicDescription


  • Subject: setting AudioStreamBasicDescription
  • From: "Sandeep Chandna" <email@hidden>
  • Date: Tue, 19 Sep 2006 15:16:31 +0530

Hi!

I was trying to set ASBD for RAW PCM samples as follows:

inputASBD.mFormatID = kAudioFormatLinearPCM;
inputASBD.mSampleRate = 32000.0;
inputASBD.mFormatFlags = 0;
inputASBD.mBytesPerPacket = 4;
inputASBD.mFramesPerPacket = 1;
inputASBD.mBytesPerFrame = 4;
inputASBD.mChannelsPerFrame = 1;
inputASBD.mBitsPerChannel = 16;


The mFormatFlags was giving me some problems (QTSetComponentProperty would return -206 error code). I didnt need to set it to any value available: kAudioFormatFlagIsSignedInteger, kAudioFormatFlagIsBigEndian or anything. The coreaudiotypes.h says that we can set this to kAudioFormatFlagsAreAllClear but this is also returning me the same "-206" error code.

It works only when I set it to anyvalue|kAudioFormatFlagIsSignedInteger. Is this the expected behaviour?

Regards
Sandeep
 _______________________________________________
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: setting AudioStreamBasicDescription
      • From: Brad Ford <email@hidden>
  • Prev by Date: Re: AUVarispeed - kAudioUnitProperty_RenderQuality
  • Next by Date: Re: setting AudioStreamBasicDescription
  • Previous by thread: Re: Name of a music track
  • Next by thread: Re: setting AudioStreamBasicDescription
  • Index(es):
    • Date
    • Thread