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

Re: Questions about AudioStreamBasicDescription


  • Subject: Re: Questions about AudioStreamBasicDescription
  • From: Bob Lang <email@hidden>
  • Date: Sun, 1 Feb 2009 22:45:02 +0000

Hi

I think you need the following include:

#include "CAStreamBasicDescription.h"

and you need to add the (.h?) and .cpp source from /Developer/Examples/ CoreAudio/PublicUtility to build External Frameworks part of your project.

There's all sorts of useful types in PublicUtility

Bob
--
On 1 Feb 2009, at 17:43, Fredrik wrote:

This is what I included in the .c file:

#include <stdio.h>
#include <Carbon/Carbon.h>
#include <AudioToolbox/AudioToolbox.h>
#include <CoreAudio/CoreAudio.h>


And this is how I compiled it:

gcc -framework Carbon -framework AudioToolbox -framework CoreAudio myApp.c -o myApp


I might have made some mistake, though.


1 feb 2009 kl. 11.29 skrev tahome izwah:

Did you include the CoreAudio.framework in your project?

--th

2009/2/1 Fredrik <email@hidden>:
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



_______________________________________________
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: Questions about AudioStreamBasicDescription
      • From: Fredrik <email@hidden>
References: 
 >Re: Questions about AudioStreamBasicDescription (From: tahome izwah <email@hidden>)
 >Re: Questions about AudioStreamBasicDescription (From: Fredrik <email@hidden>)

  • Prev by Date: Re: Questions about AudioStreamBasicDescription
  • Next by Date: Re: Questions about AudioStreamBasicDescription
  • Previous by thread: Re: Questions about AudioStreamBasicDescription
  • Next by thread: Re: Questions about AudioStreamBasicDescription
  • Index(es):
    • Date
    • Thread