Latest 0.1.0
Homepage https://github.com/dclelland/AudioUnitExtensions
License MIT
Platforms ios 8.0, requires ARC
Frameworks AudioToolbox
Authors

Convenience methods for taking the pain out of the more common AudioUnit C APIs.

I mainly use this to help with Audiobus. You will likely need to look up the types manually in AudioUnitProperties.h.

Getters and setters:

let isInterAppAudioConnected: UInt32 = audioUnit.getValue(for: kAudioUnitProperty_IsInterAppConnected)

let interAppAudioComponentDescription: AudioComponentDescription = audioUnit.getValue(for: kAudioOutputUnitProperty_NodeComponentDescription)

Listeners:

let audioUnitPropertyListener = AudioUnitPropertyListener { (audioUnit, property) in
    print("IAA status changed")
}

audioUnit.add(listener: audioUnitPropertyListener, to: kAudioUnitProperty_IsInterAppConnected)

audioUnit.remove(listener: audioUnitPropertyListener, from: kAudioUnitProperty_IsInterAppConnected)

Latest podspec

{
    "name": "AudioUnitExtensions",
    "version": "0.1.0",
    "summary": "Swift-friendly setters, getters, and listeners for AudioUnits.",
    "homepage": "https://github.com/dclelland/AudioUnitExtensions",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Daniel Clelland": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dclelland/AudioUnitExtensions.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "ios": {
        "source_files": "AudioUnitExtensions/**/*.swift"
    },
    "frameworks": "AudioToolbox",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This