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

dmn::SoundAlsa Class Reference

ALSA module for Sound. More...

#include <alsa.h>

Inheritance diagram for dmn::SoundAlsa:

Inheritance graph
[legend]
Collaboration diagram for dmn::SoundAlsa:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SoundAlsa ()
 Constructor.

 SoundAlsa::~SoundAlsa ()
 Destructor.

bool configure (Core *core)
 Make all the configuration needed by the module (after have the id).

void mix_dominoes ()
 Mix the dominoes.

void domino_played (ID player, Domino domino, HalfDomino half)
 Play a sound when a domino is played.

void player_pass (ID player)
 Play a sound when a player passes.


Detailed Description

ALSA module for Sound.

This module uses ALSA (The Advanced Linux Sound Architecture)


Member Function Documentation

bool dmn::SoundAlsa::configure Core core  )  [virtual]
 

Make all the configuration needed by the module (after have the id).

Parameters:
core core module
Returns:
true if all was ok, else false

Implements dmn::Sound.

void dmn::SoundAlsa::domino_played ID  player,
Domino  domino,
HalfDomino  half
[virtual]
 

Play a sound when a domino is played.

Parameters:
player identificator of the player
domino domino that is shuffled to player
half half of the domino

Implements dmn::Sound.

void dmn::SoundAlsa::player_pass ID  player  )  [virtual]
 

Play a sound when a player passes.

Parameters:
player identificator of the player

Implements dmn::Sound.


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:56:25 2003 for dmn by doxygen 1.3.4