Re: Decoding compressed to LPCM (Jens Alfke)
Re: Decoding compressed to LPCM (Jens Alfke)
- Subject: Re: Decoding compressed to LPCM (Jens Alfke)
- From: David Paterson <email@hidden>
- Date: Tue, 22 Apr 2008 14:18:04 -0400
Jens,
I could be wrong, but it looks like your code has a mistake.
I think this bit should actually read as follows, no? AudioStreamBasicDescription clientFormat; if( inputFormat.mFormatID == kAudioFormatLinearPCM ) clientFormat = inputFormat; else if( inputFormat.mFormatID == kAudioFormatLinearPCM ) clientFormat = _outputFormat; else {
AudioStreamBasicDescription clientFormat; if( inputFormat.mFormatID == kAudioFormatLinearPCM ) clientFormat = inputFormat; else if( outputFormat.mFormatID == kAudioFormatLinearPCM ) clientFormat = _outputFormat; else { Otherwise, you simply check the input format twice and ignore the output format altogether.
Dave Paterson |
_______________________________________________
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