Difference between revisions of "Legacy:Sound"
From Spherical
m (→Notes: fix link) |
(Added categories) |
||
Line 39: | Line 39: | ||
==See also== | ==See also== | ||
* [http://audiere.sf.net Audiere] sound library | * [http://audiere.sf.net Audiere] sound library | ||
+ | |||
+ | |||
+ | [[Category:Objects]][[Category:Functions]] |
Revision as of 18:38, 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 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