Skip to content

testing if the ipadpro was quadraphonic. doesn't look like it is

Notifications You must be signed in to change notification settings

gchilds/4ChanRemoteAudioUnit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

A failed attempt at four channel audio output for the iPadPro using Swift 2 / CoreAudio (3rd and 4th channels are discarded).

It’s an interesting example because it shows how to:

  • output realtime, procedural audio using a CoreAudio kAudioUnitSubType_RemoteIO audio unit.
  • cast between self and UnsafeMutablePointer<Void>
  • implement a c callback via AURenderCallback
  • cast AudioBufferList AudioBuffer to a swift array without accidentally copying (UnsafeMutableBufferPointer<Float>)

API calls: AudioComponentFindNext, AudioUnitSetProperty, AudioUnitInitialize, AudioOutputUnitStart

Structs/Classes: AudioComponentDescription, AURenderCallbackStruct, AudioStreamBasicDescription, AVAudioSession

Constants: kAudioFormatLinearPCM, kLinearPCMFormatFlagIsFloat, kAudioUnitProperty_StreamFormat, AVAudioSessionCategoryPlayback

About

testing if the ipadpro was quadraphonic. doesn't look like it is

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages