Skip to content

Convenience wrapper around some of Apple's Audio Service functions used for playing sound effects.

License

Notifications You must be signed in to change notification settings

irace/BRYSoundEffectPlayer

Repository files navigation

BRYSoundEffectPlayer

Convenience wrapper around some of Apple's Audio Service functions used for playing sound effects. To see an application built on top of BRYSoundEffectPlayer, check out soundboard.

Installation

Via CocoaPods, of course:

pod install BRYSoundEffectPlayer

Usage

[[BRYSoundEffectPlayer sharedInstance] playSound:@"/path/to/sound.aif"];

An instance of BRYSoundEffectPlayer will cache sounds in memory until a low memory warning occurs, though sounds will also be disposed of in order to play other sounds when playsSoundsConcurrently is set to NO.

If your needs are more advanced, you probably want to use AVAudioPlayer instead.

License

Available for use under the MIT license: http://bryan.mit-license.org

About

Convenience wrapper around some of Apple's Audio Service functions used for playing sound effects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published