0.1.0 • Published 11 years ago

osx-system-sounds v0.1.0

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

System Sounds for Node.js

This module is written for OSX.

This module provides two methods:

  • .play();
  • .playSync()

Both methods take an integer representing one of the following sounds: 1. Basso 2. Blow 3. Bottle 4. Frog 5. Funk 6. Hero 7. Morse 8. Ping 9. Pop 10. Purr 11. Sosumi 12. Submarine 13. Tink

Note:

If a program ends before the sound triggered by .play() is finished, the sound will be interrupted. With .playSync() this is not the case, as it blocks the hole program(!) until the sound has finished playing.

Choose wisely :)