Skip to content

tadija/AESound

Repository files navigation

AESound

Convenience API for playing iOS system sounds

I made this for personal use, but feel free to use it or contribute.

Usage

// AudioToolbox
AESound().playSystemSound(.uisounds_go_to_sleep_alert)

// AVFoundation
let output = AESound()
let path = SystemSound.uisounds_go_to_sleep_alert.rawValue
output.prepareSound(atPath: path)
output.playSound(atPath: path)
output.cleanupSound(atPath: path)

Installation

.Package(url: "https://github.com/tadija/AESound.git", majorVersion: 0)

License

This code is released under the MIT license. See LICENSE for details.

About

Convenience API for playing iOS system sounds

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages