AudioConverterNew (fmt?) on Leopard
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