• 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: 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.
  • Follow-Ups:
    • Re: AudioConverter Mono issue
      • From: Michael Thornburgh <email@hidden>
References: 
 >AudioConverter Mono issue (From: Benedict Singer <email@hidden>)

  • Prev by Date: Multitimbral Music Devices - Question and Proposal
  • Next by Date: Audio Units and sending Midi
  • Previous by thread: Re: Detecting unmounted CD-ROMs
  • Next by thread: Re: AudioConverter Mono issue
  • Index(es):
    • Date
    • Thread