FmodSoundSystem Class Reference

#include <fmod-soundsystem.h>

Inheritance diagram for FmodSoundSystem:

QWidget

List of all members.


Detailed Description

Holds a list of sounds and names. Soundplayer can search and play by name, or the application can manage directly thru SoundList

Definition at line 58 of file fmod-soundsystem.h.


Public Slots

void add (QString sound_name, QString file_name)
void rem (QString sound_name)
void play (QString sound_name)
void stop (QString sound_name)

Signals

void sigOutputList (QStringList)
void sigSoundList (QStringList)
void sigSoundAdd (QString)
void sigSoundRem (QString)

Public Member Functions

 FmodSoundSystem (int ID, QWidget *parent=0)
 ~FmodSoundSystem ()
void FindOutputTypes ()
bool isAvailable ()
bool haveSound (QString)
QStringList getSoundList ()

Public Attributes

QStringList OutputTypeList
QStringList PlaybackDrivers
QStringList RecordingDrivers
FMOD_SYSTEM * Fsystem
FMOD_SOUND * Fsound
FMOD_CHANNEL * Fchannel
FMOD_RESULT result
FMOD_CREATESOUNDEXINFO exinfo
int key
int driver
int numdrivers
int count
unsigned int Fversion
QHash< QString,
FmodSound
SoundList

Private Attributes

int MyID

Constructor & Destructor Documentation

FmodSoundSystem::FmodSoundSystem ( int  ID,
QWidget parent = 0 
)

Definition at line 37 of file fmod-soundsystem.cpp.

References count, ERRCHECK(), FindOutputTypes(), Fsystem, Fversion, MyID, name, numdrivers, PlaybackDrivers, RecordingDrivers, and result.

Here is the call graph for this function:

FmodSoundSystem::~FmodSoundSystem (  ) 

Definition at line 110 of file fmod-soundsystem.cpp.

References ERRCHECK(), Fsystem, and result.

Here is the call graph for this function:


Member Function Documentation

void FmodSoundSystem::FindOutputTypes (  ) 

Definition at line 116 of file fmod-soundsystem.cpp.

References OutputTypeList.

Referenced by FmodSoundSystem().

bool FmodSoundSystem::isAvailable (  ) 

Definition at line 146 of file fmod-soundsystem.cpp.

bool FmodSoundSystem::haveSound ( QString   ) 

QStringList FmodSoundSystem::getSoundList (  ) 

Definition at line 152 of file fmod-soundsystem.cpp.

References QHash::keys(), and SoundList.

Referenced by add(), FmodSystemPlugin::getDock(), rem(), and FmodSystemPlugin::SaveSettings().

Here is the call graph for this function:

void FmodSoundSystem::sigOutputList ( QStringList   )  [signal]

void FmodSoundSystem::sigSoundList ( QStringList   )  [signal]

Referenced by add(), and rem().

void FmodSoundSystem::sigSoundAdd ( QString   )  [signal]

Referenced by add().

void FmodSoundSystem::sigSoundRem ( QString   )  [signal]

Referenced by rem().

void FmodSoundSystem::add ( QString  sound_name,
QString  file_name 
) [slot]

Definition at line 157 of file fmod-soundsystem.cpp.

References QHash::contains(), Fsystem, getSoundList(), sigSoundAdd(), sigSoundList(), SoundList, and QString::toAscii().

Referenced by FmodSystemPlugin::LoadSettings(), and FmodSystemPlugin::remote_data().

void FmodSoundSystem::rem ( QString  sound_name  )  [slot]

Definition at line 171 of file fmod-soundsystem.cpp.

References QHash::contains(), getSoundList(), QHash::remove(), sigSoundList(), sigSoundRem(), SoundList, and QString::toAscii().

void FmodSoundSystem::play ( QString  sound_name  )  [slot]

Definition at line 184 of file fmod-soundsystem.cpp.

References FmodSound::channel, QHash::contains(), ERRCHECK(), Fsystem, result, FmodSound::sound, SoundList, and QString::toAscii().

Referenced by FmodModule::Play(), and FmodSystemPlugin::remote_data().

void FmodSoundSystem::stop ( QString  sound_name  )  [slot]

Definition at line 206 of file fmod-soundsystem.cpp.

Referenced by FmodSystemPlugin::remote_data(), and FmodModule::Stop().


Member Data Documentation

int FmodSoundSystem::MyID [private]

Definition at line 62 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem().

QStringList FmodSoundSystem::OutputTypeList

Definition at line 73 of file fmod-soundsystem.h.

Referenced by FindOutputTypes(), and FmodSystemPlugin::getConfig().

QStringList FmodSoundSystem::PlaybackDrivers

Definition at line 74 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem(), and FmodSystemPlugin::getConfig().

QStringList FmodSoundSystem::RecordingDrivers

Definition at line 75 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem(), and FmodSystemPlugin::getConfig().

FMOD_SYSTEM* FmodSoundSystem::Fsystem

Definition at line 78 of file fmod-soundsystem.h.

Referenced by add(), FmodSystemPlugin::CoreInit(), FmodSoundSystem(), play(), FmodSystemPlugin::SaveSettings(), and ~FmodSoundSystem().

FMOD_SOUND* FmodSoundSystem::Fsound

Definition at line 79 of file fmod-soundsystem.h.

FMOD_CHANNEL* FmodSoundSystem::Fchannel

Definition at line 80 of file fmod-soundsystem.h.

FMOD_RESULT FmodSoundSystem::result

Definition at line 81 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem(), play(), and ~FmodSoundSystem().

FMOD_CREATESOUNDEXINFO FmodSoundSystem::exinfo

Definition at line 82 of file fmod-soundsystem.h.

int FmodSoundSystem::key

Definition at line 83 of file fmod-soundsystem.h.

int FmodSoundSystem::driver

Definition at line 83 of file fmod-soundsystem.h.

int FmodSoundSystem::numdrivers

Definition at line 83 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem().

int FmodSoundSystem::count

Definition at line 83 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem().

unsigned int FmodSoundSystem::Fversion

Definition at line 84 of file fmod-soundsystem.h.

Referenced by FmodSoundSystem().

QHash<QString, FmodSound> FmodSoundSystem::SoundList

Definition at line 86 of file fmod-soundsystem.h.

Referenced by add(), getSoundList(), play(), rem(), and FmodSystemPlugin::SaveSettings().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:41 2007 for BBoB by  doxygen 1.5.3