Wt::Audio::Channel Class Reference

#include <audio.h>

Inheritance diagram for Wt::Audio::Channel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void setVolume (int)
virtual void play (Chunk &, int duration=-1)
virtual void fadeIn (Chunk &, int, int duration=-1)
virtual void fadeOut (int ms)
virtual void pause ()
 pause channel
virtual void resume ()
 resume channel
virtual void stop (int ms=0)
 stop channel
virtual bool playing () const
virtual bool paused () const
virtual int fading () const
virtual Chunkchunk () const
virtual ~Channel ()

Public Attributes

Signal01< void, Channel * > finished
WVar< intloops

Protected Member Functions

 Channel ()

Friends

class Audio

Detailed Description

Definition at line 131 of file audio.h.


Constructor & Destructor Documentation

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

Definition at line 277 of file audio.cpp.

00277 {}

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

Definition at line 274 of file audio.cpp.

00274                       :
00275 loops(1) {}


Member Function Documentation

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

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

Definition at line 310 of file audio.cpp.

Referenced by Wt::Audio::onChannelFinish().

00310                                       {
00311     return 0;
00312 }

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

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

Definition at line 285 of file audio.cpp.

00285 {}

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

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 287 of file audio.cpp.

00287 {}

int Wt::Audio::Channel::fading (  )  const [virtual]

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 306 of file audio.cpp.

00306                                {
00307     return 0;
00308 }

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

pause channel

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 290 of file audio.cpp.

00290 {}

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

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 302 of file audio.cpp.

00302                                 {
00303     return false;
00304 }

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

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

Definition at line 281 of file audio.cpp.

References trace.

00281                                    {
00282     trace("audio", "Audio::Channel::play()\n");
00283 }

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

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 298 of file audio.cpp.

00298                                  {
00299     return false;
00300 }

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

resume channel

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 293 of file audio.cpp.

00293 {}

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

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 279 of file audio.cpp.

00279 {}

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

stop channel

Reimplemented in Wt::SDLMixer::Channel.

Definition at line 296 of file audio.cpp.

00296 {}


Friends And Related Function Documentation

friend class Audio [friend]

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

Definition at line 132 of file audio.h.


Member Data Documentation

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

Definition at line 151 of file audio.h.

Referenced by Wt::Audio::handleAudioEvent().

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

Definition at line 152 of file audio.h.

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


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

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