Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 872 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 872 Bytes

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