Difference between revisions of "Legacy:Sound"
From Spherical
(created from http://web.archive.org/web/20110731183131/http://www.spheredev.org/wiki/Object-Sound) |
m (→See also: fix link) |
||
Line 38: | Line 38: | ||
==See also== | ==See also== | ||
− | * [http:/audiere.sf.net Audiere] sound library | + | * [http://audiere.sf.net Audiere] sound library |
Revision as of 18:36, 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
- Audiere sound library