Difference between revisions of "Legacy:Sound"
From Spherical
(created from http://web.archive.org/web/20110731183131/http://www.spheredev.org/wiki/Object-Sound) |
(No difference)
|
Revision as of 18:35, 20 May 2013
Holds a sound that can be played by Sphere.
Initializers
Methods
- Sound.play()
- Sound.pause()
- Sound.stop()
- Sound.isPlaying()
- Sound.getPan()
- Sound.setPan()
- Sound.getPitch()
- Sound.setPitch()
- Sound.getVolume()
- Sound.setVolume()
Members
None.
Examples
See the examples for Sound.play().
Notes
Sphere uses [http:/audiere.sf.net Audiere], a library that supports many sound formats. The sound formats supported include:
- Uncompressed WAV (seek supported)
- Uncompressed AIFF (seek supported)
- Ogg Vorbis (seek supported)
- FLAC (seek supported)
- MP3
- MOD, S3M, IT, XM (module music formats)
- MIDI
As mentioned above, streaming is only supported for certain kinds of audio files.
See also
- [http:/audiere.sf.net Audiere] sound library