• 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
Turning on 8.24 audio for iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning on 8.24 audio for iPhone


  • Subject: Turning on 8.24 audio for iPhone
  • From: "omenie.com" <email@hidden>
  • Date: Thu, 15 Jan 2009 18:01:43 +0000

Hi all. 

I'm mixing multiple audio streams in an iPhone / iTouch app and clamping the result to 16 bits. Everything works fine right now, but since I'm generating intermediate results in 16.16 I could trivially convert to 8.24 and use iPhone's native resolution and save some CPU on the clamping code's over/underflow testing. What changes do I need to make to the AudioStreamBasicDescription and AUDIOFORMATFLAGS to enable this? Also, once 8.24 is enabled, will the same code run on Mac OS X, or is the 8.24 audio format not supported on the desktop? 

Here's what I'm doing right now - 

#define AUDIOFORMATFLAGS kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked

// Describe format
AudioStreamBasicDescription audioFormat;
audioFormat.mSampleRate       = 22050; 
audioFormat.mFormatID       = kAudioFormatLinearPCM;
audioFormat.mFormatFlags      = AUDIOFORMATFLAGS;
audioFormat.mFramesPerPacket  = 1;
audioFormat.mChannelsPerFrame = 2;
audioFormat.mBitsPerChannel   = 16;
audioFormat.mBytesPerPacket   = 4;
audioFormat.mBytesPerFrame    = 4;


// Apply format
status = AudioUnitSetProperty(audioUnit, 
kAudioUnitProperty_StreamFormat, 
kAudioUnitScope_Input, 
kOutputBus, 
&audioFormat, 
sizeof(audioFormat));

I've tried all sorts of perms and combs and just get no sound, so any pointers will help. 
 
 _______________________________________________
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: Turning on 8.24 audio for iPhone
      • From: "omenie.com" <email@hidden>
References: 
 >Protected WMA (From: William Bates <email@hidden>)

  • Prev by Date: USB Audio Class Device with custom filtering
  • Next by Date: Re: Apple Loops Utility Question
  • Previous by thread: Protected WMA
  • Next by thread: Re: Turning on 8.24 audio for iPhone
  • Index(es):
    • Date
    • Thread