Re: AudioConverter Mono issue
Re: AudioConverter Mono issue
- Subject: Re: AudioConverter Mono issue
- From: Michael Thornburgh <email@hidden>
- Date: Mon, 14 Jul 2003 10:50:15 -0700
when you change the number of channels per frame, that also changes the
number of bytes per frame and bytes per packet. if you don't also
change those in the AudioStreamBasicDescription, then the ASBD will be
inconsistent.
-mike
On Monday, July 14, 2003, at 10:24 AM, Roy Lovejoy wrote:
On Monday, July 14, 2003, at 04:09 AM, Benedict Singer wrote:
status = AudioDeviceGetProperty( data->device, 0, isInput,
kAudioDevicePropertyStreamFormatMatch,
&inPropertyDataSize,
&description );
// change description according to requirements
descriptionActual = description;
description.mChannelsPerFrame = pcmValues[0];
description.mSampleRate = (double)pcmValues[2];
wild hunch:
there's a 'reserved' field that looks strangely like a pointer,
that gets returned in the descriptor from ADGP()..
try zeroing that out..
also, make sure you're setting your flags, i.e. if you are using 16 bit
integers, set up your descriptor flag as such. the flags will be set
to float
if you get the descriptor straight from ADGP()..
I just got done with using AudioConverter last week, making sure I
could convert
any sample size, channel num, sample rate, up to 44.1K/float/stereo..
In cases like this, I BlockZero() the descriptor, and set each & every
field
explicitly (to avoid carry over data)
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.