BRYSoundEffectPlayer icon indicating copy to clipboard operation
BRYSoundEffectPlayer copied to clipboard

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

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