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

Questions about AudioStreamBasicDescription


  • Subject: Questions about AudioStreamBasicDescription
  • From: Fredrik <email@hidden>
  • Date: Sun, 1 Feb 2009 02:34:12 +0100

So I have just recently started to look into core audio and have started to experiment with a simple file format converter.
In one of AudioFileCreate´s fields an AudioStreamBasicDescription seems to be called for.


I keep getting a compile error saying: AudioStreamBasicDescription and my own struct of this type is undeclared.
It should be included in CoreAudio.h right?


This is what I did:

AudioStreamBasicDescripton OutFormat;

OutFormat.mSampleRate = 44100;
OutFormat.mFormatID = kAudioFormatLinearPCM;
OutFormat.mFormarFlags = kLinearPCMFormatFlagIsSignedInteger;
OutFormat.mBytesPerPacket = 2;
OutFormat.mFramesPerPacket = 1;
OutFormat.mBytesPerFrame = 2;
OutFormat.mChannelsPerFrame = 1;
OutFormat.mBitsPerChannel = 16;





_______________________________________________ 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
  • Prev by Date: AIFFWriter - Select Output Encoding Format dialog box
  • Next by Date: Re: AIFFWriter - Select Output Encoding Format dialog box
  • Previous by thread: Re: AIFFWriter - Select Output Encoding Format dialog box
  • Index(es):
    • Date
    • Thread