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

SoundMixer Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/sound.h>

Collaboration diagram for SoundMixer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SoundMixer (char *)
 ~SoundMixer ()
void startSound (Sound *sound)
void stopSounds ()
long playSounds ()
long fillSoundBuffer (SoundList *, char *buffer, long bufferSize)

Private Attributes

SoundListlist

Static Private Attributes

static long dsp = -1
static char * buffer = 0
static long blockSize = 0
static long nbInst = 0
static long soundRate = 0
static long stereo = 0
static long sampleSize = 0

Constructor & Destructor Documentation

SoundMixer::SoundMixer char *   ) 
 

Definition at line 145 of file sound.cc.

References blockSize, buffer, dsp, fmt(), list, nbInst, Opie::Core::perror(), printf, sampleSize, soundRate, and stereo.

SoundMixer::~SoundMixer  ) 
 

Definition at line 222 of file sound.cc.

References buffer, dsp, and nbInst.


Member Function Documentation

long SoundMixer::fillSoundBuffer SoundList ,
char *  buffer,
long  bufferSize
 

Definition at line 337 of file sound.cc.

References SoundList::current, SoundList::rate, SoundList::remaining, sampleSize, SoundList::sampleSize, soundRate, stereo, and SoundList::stereo.

Referenced by playSounds().

long SoundMixer::playSounds  ) 
 

Definition at line 268 of file sound.cc.

References blockSize, buffer, dsp, fillSoundBuffer(), list, SoundList::next, SoundList::remaining, and write().

Referenced by FlashMovie::handleEvent(), and FlashMovie::processMovie().

void SoundMixer::startSound Sound sound  ) 
 

Definition at line 248 of file sound.cc.

References SoundList::current, Sound::getChannel(), Sound::getNbSamples(), Sound::getRate(), Sound::getSamples(), Sound::getSampleSize(), list, SoundList::next, SoundList::rate, SoundList::remaining, SoundList::sampleSize, and SoundList::stereo.

Referenced by Program::doAction(), and Program::runFrame().

void SoundMixer::stopSounds  ) 
 

Definition at line 233 of file sound.cc.

References list, and SoundList::next.

Referenced by Program::doAction(), and Program::runFrame().


Member Data Documentation

long SoundMixer::blockSize = 0 [static, private]
 

Definition at line 138 of file sound.cc.

Referenced by playSounds(), and SoundMixer().

char * SoundMixer::buffer = 0 [static, private]
 

Definition at line 143 of file sound.cc.

Referenced by playSounds(), SoundMixer(), and ~SoundMixer().

long SoundMixer::dsp = -1 [static, private]
 

Definition at line 137 of file sound.cc.

Referenced by playSounds(), SoundMixer(), and ~SoundMixer().

SoundList* SoundMixer::list [private]
 

Definition at line 59 of file sound.h.

Referenced by playSounds(), SoundMixer(), startSound(), and stopSounds().

long SoundMixer::nbInst = 0 [static, private]
 

Definition at line 139 of file sound.cc.

Referenced by SoundMixer(), and ~SoundMixer().

long SoundMixer::sampleSize = 0 [static, private]
 

Definition at line 140 of file sound.cc.

Referenced by fillSoundBuffer(), and SoundMixer().

long SoundMixer::soundRate = 0 [static, private]
 

Definition at line 142 of file sound.cc.

Referenced by fillSoundBuffer(), and SoundMixer().

long SoundMixer::stereo = 0 [static, private]
 

Definition at line 141 of file sound.cc.

Referenced by fillSoundBuffer(), and SoundMixer().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:52:16 2005 for OPIE by  doxygen 1.4.2