Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

wftk::Sound Class Reference

abstract sound class More...

#include <sound.h>

Inheritance diagram for wftk::Sound:

wftk::Music wftk::Sample wftk::Video wftk::VideoWidget List of all members.

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

Detailed Description

abstract sound class


Member Function Documentation

virtual int wftk::Sound::setVolume int  vol  )  [pure virtual]
 

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.


The documentation for this class was generated from the following file:

Generated Tue Apr 12 22:48:56 2005.
Copyright © 1998-2003 by the respective authors.

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.