• 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: Basic Description
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic Description


  • Subject: Re: Basic Description
  • From: Jeff Moore <email@hidden>
  • Date: Mon, 17 Nov 2008 11:43:34 -0800

You don't say what GV_BITS_PER_SAMPLE or GV_BYTES_PER_SAMPLE are. In this case, GV_BYTES_PER_SAMPLE had better be GV_BITS_PER_SAMPLE / 8 or this ASBD would not be filled out correctly. Apart from that, I don't see anything ostensibly wrong with this ASBD.

At any rate, it may not be the ASBD or the AudioConverter that is causing your troubles. You might want to go and be sure that you have the data you expect at each point in your signal chain.

On Nov 17, 2008, at 11:34 AM, Saad Nader wrote:

The audio captured from my microphone doesn’t seem to playback.  I have an intermediate formant that I convert to.  Here’s the Basic Description:
 
      memset(&GVIVoiceFormat, 0, sizeof(AudioStreamBasicDescription));
      GVIVoiceFormat.mSampleRate = (Float64)GV_SAMPLES_PER_SECOND;
      GVIVoiceFormat.mFormatID = kAudioFormatLinearPCM;
      GVIVoiceFormat.mFormatFlags = kAudioFormatFlagsNativeEndian|kAudioFormatFlagIsSignedInteger|kAudioFormatFlagIsPacked;
      GVIVoiceFormat.mBytesPerPacket = GV_BYTES_PER_SAMPLE;
      GVIVoiceFormat.mFramesPerPacket = 1;
      GVIVoiceFormat.mBytesPerFrame = GV_BYTES_PER_SAMPLE;
      GVIVoiceFormat.mChannelsPerFrame = 1;
      GVIVoiceFormat.mBitsPerChannel = GV_BITS_PER_SAMPLE;
 
Is this format OK to use?  It seems like the AudioConverter does not complain about this format.  I haven’t got any initialization errors, nor any errors during the conversion.



-- 

Jeff Moore
Core Audio
Apple


 _______________________________________________
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

References: 
 >Basic Description (From: "Saad Nader" <email@hidden>)

  • Prev by Date: Re: Crash Proof Apple Lossless
  • Next by Date: Re: clocks
  • Previous by thread: Basic Description
  • Next by thread: AudioDeviceAddIOProc replacement?
  • Index(es):
    • Date
    • Thread