/swift-system-sound

🎶 A Swift Library that makes SystemSound playback easy.

Primary LanguageSwiftMIT LicenseMIT

SystemSound

A Swift Library that makes swift-system-sound playback easy.

Github issues Github forks Github stars Github top language

The system sound in AudioToolBox must be specified numerically, but it is not clear what that numerical value should sound like. Therefore, I have made it possible to play sounds by specifying the sound name. It was obtained by analyzing the system file.

The following table shows the correspondence between SystemSoundID and sound names. Table of SytemSoundID and Sound Name

Usage

import

import SystemSound

PlaySounds

AudioServicesPlaySystemSound(.sentMessage)

License

SystemSound is released under the MIT License. See LICENSE