• 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
AudioConverterNew (fmt?) on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioConverterNew (fmt?) on Leopard


  • Subject: AudioConverterNew (fmt?) on Leopard
  • From: Jim Heintz <email@hidden>
  • Date: Thu, 6 Dec 2007 13:20:32 -0800

Hello,

I am receiving a 'fmt?' result from AudioConverterNew when I attempt to convert from the default stream format on an iMacIntel to anything...

CAStreamBasicDescription ifmt;
QTGetComponentProperty(sgSoundChannel, kQTPropertyClass_SGAudioRecordDevice, kQTSGAudioPropertyID_StreamFormat, sizeof( ifmt), & ifmt, NULL);


ifmt.Print();
// returns :: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000004) 24-bit little-endian signed integer, unpacked in 4 bytes low-aligned
CAStreamBasicDescription fmt;
fmt.mSampleRate = 0;
fmt.mFormatID = kAudioFormatMPEG4AAC;
fmt.mFormatFlags = 0;
fmt.mBytesPerPacket = 0;
fmt.mFramesPerPacket = AAC_PACKET_FLOATS;
fmt.mBytesPerFrame = 0;
fmt.mChannelsPerFrame = 2;
fmt.mBitsPerChannel = 0;
err = AudioConverterNew(& ifmt, & fmt, &cvtr); --> err == 'fmt?'


This code works fine on Tiger. Has there been a change, or am I doing something wrong?

-Jim Heintz
_______________________________________________
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: AudioConverterNew (fmt?) on Leopard
      • From: Eric Allamanche <email@hidden>
  • Prev by Date: Re: Validity of ACC Convertor Bitrate Values from kAudioConverterAvailableEncodeBitRates
  • Next by Date: Re: Problems when changing sample rate on a aggregate device
  • Previous by thread: Re: Validity of ACC Convertor Bitrate Values from kAudioConverterAvailableEncodeBitRates
  • Next by thread: Re: AudioConverterNew (fmt?) on Leopard
  • Index(es):
    • Date
    • Thread