#include <sound.h>
Inheritance diagram for wftk::Sound:

Public Types | |
| enum | { VOLUME_MAX = 128, VOLUME_MIN = 0 } |
Public Member Functions | |
| Sound (const Sound &) | |
| create a copy of a sound | |
| virtual bool | load (const std::string &)=0 |
| load a sound from a file | |
| virtual bool | playing () const =0 |
| is the sound currently playing? | |
| virtual int | setVolume (int vol)=0 |
| set volume. | |
| virtual bool | play (int loops=0) const =0 |
| play the sound | |
| virtual void | stop () const =0 |
| stop playing the sound | |
|
|
set volume. valid range is 0..128, the old value is returned. if vol=-1, just the old value is returned. Implemented in wftk::Music, wftk::Sample, and wftk::Video. |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.