Re: AudioConverter Mono issue
Re: AudioConverter Mono issue
- Subject: Re: AudioConverter Mono issue
- From: Roy Lovejoy <email@hidden>
- Date: Mon, 14 Jul 2003 10:24:58 -0700
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.