SkillAgentSearch skills...

BRYSoundEffectPlayer

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

Install / Use

/learn @irace/BRYSoundEffectPlayer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars45
CategoryDevelopment
Updated3y ago
Forks4

Languages

Objective-C

Security Score

75/100

Audited on Jan 31, 2023

No findings