• 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
Re: Decoding compressed to LPCM (Jens Alfke)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Decoding compressed to LPCM (Jens Alfke)
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: My parameters are off in Logic
  • Next by Date: AUVarispeed usage question
  • Previous by thread: Re: Initialization of parameters
  • Next by thread: Re: Decoding compressed to LPCM (Jens Alfke)
  • Index(es):
    • Date
    • Thread