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.
Via CocoaPods, of course:
pod install BRYSoundEffectPlayer
[[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.
Available for use under the MIT license: http://bryan.mit-license.org