• 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
Mixing 16Khz, 8 bit audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mixing 16Khz, 8 bit audio


  • Subject: Mixing 16Khz, 8 bit audio
  • From: Aran Mulholland <email@hidden>
  • Date: Tue, 21 Sep 2010 23:12:54 +1000

Hey All,

Just wondering whether it is possible to set up a multi channel mixer
on the iPhone to accept a format like this: (its meant to be 16Khz, 8
bit, non interleaved stereo)

nonInterleavedAudioFormat.mSampleRate = 16000.0;
nonInterleavedAudioFormat.mFormatID = kAudioFormatLinearPCM;
nonInterleavedAudioFormat.mFormatFlags =
kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsNonInterleaved |
kAudioFormatFlagIsPacked;
nonInterleavedAudioFormat.mFramesPerPacket = 1;
nonInterleavedAudioFormat.mChannelsPerFrame = 2;
nonInterleavedAudioFormat.mBitsPerChannel = 8;
nonInterleavedAudioFormat.mBytesPerPacket = 2;
nonInterleavedAudioFormat.mBytesPerFrame = 2;

When I do a

err = AudioUnitSetProperty(outputMixerUnit,
					kAudioUnitProperty_StreamFormat,
					kAudioUnitScope_Output,
					0,
					&nonInterleavedAudioFormat,
					sizeof(nonInterleavedAudioFormat));

I get the dreaded -10868 (kAudioUnitErr_FormatNotSupported)

It is fine setting the input however :

err = AudioUnitSetProperty(outputMixerUnit,
		                        kAudioUnitProperty_StreamFormat,
			                kAudioUnitScope_Input,
					0,
					&nonInterleavedAudioFormat,
					sizeof(nonInterleavedAudioFormat));

I'd really like to know what I'm doing wrong, I usually spend more
time setting up the AUGraph and connections than coding my Audio.

What formats are supported? Setting the RemoteIO's input with the same
input is allowed.

err = AudioUnitSetProperty(remoteIOUnit,
				        kAudioUnitProperty_StreamFormat,
				        kAudioUnitScope_Input,
					0,
					&nonInterleavedAudioFormat,
				        sizeof(nonInterleavedAudioFormat));


Thanks

Aran.
 _______________________________________________
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: Mixing 16Khz, 8 bit audio
      • From: "Stephen F. Booth" <email@hidden>
    • RE: Mixing 16Khz, 8 bit audio
      • From: Stéphane Beauchemin <email@hidden>
  • Prev by Date: Get audio beats
  • Next by Date: Re: Get audio beats
  • Previous by thread: Re: Get audio beats
  • Next by thread: RE: Mixing 16Khz, 8 bit audio
  • Index(es):
    • Date
    • Thread