Wt::Audio::Chunk Class Reference

Audio::Chunk base abstract class. More...

#include <audio.h>

Inheritance diagram for Wt::Audio::Chunk:

Inheritance graph
[legend]
Collaboration diagram for Wt::Audio::Chunk:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void setVolume (int)
virtual void play (int duration=-1)
virtual void fadeIn (int, int duration=-1)
virtual void fadeOut (int ms)
virtual void pause ()
 pause chunk
virtual void resume ()
 resume chunk
virtual void stop (int ms=0)
 stop chunk
virtual bool playing () const
virtual bool paused () const
virtual Channelchannel () const
template<typename CHILD>
CHILD::Channel * channel () const
virtual Chunkclone () const
virtual void detach ()
virtual ~Chunk ()

Public Attributes

Signal01< void, Chunk * > finished
WVar< intloops

Protected Member Functions

 Chunk ()

Friends

class Audio

Detailed Description

Audio::Chunk base abstract class.

Definition at line 92 of file audio.h.


Constructor & Destructor Documentation

Wt::Audio::Chunk::~Chunk (  )  [virtual]

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 233 of file audio.cpp.

References stop().

00233                    {
00234     stop();
00235 }

Here is the call graph for this function:

Wt::Audio::Chunk::Chunk (  )  [protected]

Reimplemented in Wt::NullAudio::Chunk.

Definition at line 230 of file audio.cpp.

Referenced by Wt::SDLMixer::Chunk::clone().

00231         : loops(1) {}


Member Function Documentation

template<typename CHILD>
CHILD::Channel* Wt::Audio::Chunk::channel (  )  const [inline]

Reimplemented in Wt::NullAudio::Chunk, and Wt::SDLMixer::Chunk.

Definition at line 114 of file audio.h.

References channel().

00114                                                {
00115             return static_cast<typename CHILD::Channel *>(channel());
00116         }

Here is the call graph for this function:

Audio::Channel * Wt::Audio::Chunk::channel (  )  const [virtual]

Reimplemented in Wt::NullAudio::Chunk, and Wt::SDLMixer::Chunk.

Definition at line 262 of file audio.cpp.

Referenced by channel().

00262                                         {
00263     return 0;
00264 }

Audio::Chunk * Wt::Audio::Chunk::clone (  )  const [virtual]

Reimplemented in Wt::NullAudio::Chunk, and Wt::SDLMixer::Chunk.

Definition at line 266 of file audio.cpp.

00266                                     {
00267     return 0;
00268 }

void Wt::Audio::Chunk::detach (  )  [virtual]

Reimplemented in Wt::NullAudio::Chunk, and Wt::SDLMixer::Chunk.

Definition at line 270 of file audio.cpp.

00270 {}

void Wt::Audio::Chunk::fadeIn ( int  ,
int  duration = -1 
) [virtual]

Reimplemented in Wt::NullAudio::Chunk, and Wt::SDLMixer::Chunk.

Definition at line 241 of file audio.cpp.

00241 {}

void Wt::Audio::Chunk::fadeOut ( int  ms  )  [virtual]

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 243 of file audio.cpp.

00243 {}

void Wt::Audio::Chunk::pause (  )  [virtual]

pause chunk

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 246 of file audio.cpp.

00246 {}

bool Wt::Audio::Chunk::paused (  )  const [virtual]

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 258 of file audio.cpp.

00258                               {
00259     return false;
00260 }

void Wt::Audio::Chunk::play ( int  duration = -1  )  [virtual]

Reimplemented in Wt::NullAudio::Chunk, and Wt::SDLMixer::Chunk.

Definition at line 239 of file audio.cpp.

Referenced by Wt::Sound::play().

00239 {}

bool Wt::Audio::Chunk::playing (  )  const [virtual]

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 254 of file audio.cpp.

00254                                {
00255     return false;
00256 }

void Wt::Audio::Chunk::resume (  )  [virtual]

resume chunk

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 249 of file audio.cpp.

00249 {}

void Wt::Audio::Chunk::setVolume ( int   )  [virtual]

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 237 of file audio.cpp.

00237 {}

void Wt::Audio::Chunk::stop ( int  ms = 0  )  [virtual]

stop chunk

Reimplemented in Wt::SDLMixer::Chunk.

Definition at line 252 of file audio.cpp.

Referenced by ~Chunk().

00252 {}


Friends And Related Function Documentation

friend class Audio [friend]

Definition at line 93 of file audio.h.


Member Data Documentation

Signal01<void, Chunk *> Wt::Audio::Chunk::finished

Definition at line 118 of file audio.h.

Referenced by Wt::Sound::play().

WVar<int> Wt::Audio::Chunk::loops

Definition at line 119 of file audio.h.

Referenced by Wt::SDLMixer::Chunk::fadeIn(), and Wt::SDLMixer::Chunk::play().


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

Generated Fri Jul 28 19:25:47 2006.
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.