• 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: AudioConverter Mono issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: AudioConverter Mono issue (From: Roy Lovejoy <email@hidden>)

  • Prev by Date: Audio Units and sending Midi
  • Next by Date: Re: MIDI "Controller" Support (was: Rationale for ignoring common MIDI control changes)
  • Previous by thread: Re: AudioConverter Mono issue
  • Next by thread: Re: AudioConverter Mono issue
  • Index(es):
    • Date
    • Thread