#include <eChannelSDLMixer.h>
Public Member Functions | |
eChannelSDLMixer () | |
void | SetVolume (int volume) |
int | GetId () |
void | SetId (int newID) |
void | Set3d (eCoord home, eCoord soundPos, eCoord homeDirection) |
void | PlaySound (eWavData &sound) |
void | LoopSound (eWavData &sound) |
void | StopSound () |
void | UnplaySound () |
Uint32 | StartTime () |
bool | IsContinuous () |
void | Update () |
bool | isDirty () |
bool | isBusy () |
void | SetOwner (eGameObject *owner) |
void | DelayStarting () |
bool | IsDelayed () |
void | Undelay () |
void | SetHome (eGameObject *home) |
eGameObject * | GetOwner () |
Static Public Attributes | |
static int | numChannels |
Private Attributes | |
eWavData | m_Sound |
bool | m_Delayed |
bool | m_StartNow |
int | m_Volume |
int | m_ChannelID |
Uint32 | m_StartTime |
bool | m_isDirty |
bool | m_isPlaying |
eGameObject * | m_Owner |
eGameObject * | m_Home |
bool | m_continuous |
Definition at line 83 of file eChannelSDLMixer.h.
eChannelSDLMixer::eChannelSDLMixer | ( | ) |
void eChannelSDLMixer::SetVolume | ( | int | volume | ) |
int eChannelSDLMixer::GetId | ( | ) | [inline] |
void eChannelSDLMixer::SetId | ( | int | newID | ) | [inline] |
Definition at line 88 of file eChannelSDLMixer.h.
References m_ChannelID.
00088 { return m_ChannelID; };
void eChannelSDLMixer::Set3d | ( | eCoord | home, | |
eCoord | soundPos, | |||
eCoord | homeDirection | |||
) |
void eChannelSDLMixer::PlaySound | ( | eWavData & | sound | ) |
void eChannelSDLMixer::LoopSound | ( | eWavData & | sound | ) |
void eChannelSDLMixer::StopSound | ( | ) | [inline] |
Definition at line 93 of file eChannelSDLMixer.h.
00094 { 00095 #ifndef DEDICATED 00096 m_isDirty = true; m_isPlaying = false; Mix_HaltChannel(m_ChannelID); 00097 #endif
void eChannelSDLMixer::UnplaySound | ( | ) |
Uint32 eChannelSDLMixer::StartTime | ( | ) | [inline] |
bool eChannelSDLMixer::IsContinuous | ( | ) | [inline] |
Definition at line 104 of file eChannelSDLMixer.h.
References m_StartTime.
00104 { return m_StartTime; };
void eChannelSDLMixer::Update | ( | ) |
bool eChannelSDLMixer::isDirty | ( | ) | [inline] |
Definition at line 110 of file eChannelSDLMixer.h.
References m_isDirty.
00111 { return m_isDirty; };
bool eChannelSDLMixer::isBusy | ( | ) | [inline] |
Definition at line 113 of file eChannelSDLMixer.h.
References m_isPlaying.
00114 { return m_isPlaying; };
void eChannelSDLMixer::SetOwner | ( | eGameObject * | owner | ) |
void eChannelSDLMixer::DelayStarting | ( | ) | [inline] |
bool eChannelSDLMixer::IsDelayed | ( | ) | [inline] |
Definition at line 117 of file eChannelSDLMixer.h.
References m_Delayed, and m_StartNow.
00117 { m_Delayed = true; m_StartNow = false; };
void eChannelSDLMixer::Undelay | ( | ) | [inline] |
Definition at line 118 of file eChannelSDLMixer.h.
References m_Delayed.
00118 { return m_Delayed; };
void eChannelSDLMixer::SetHome | ( | eGameObject * | home | ) | [inline] |
Definition at line 119 of file eChannelSDLMixer.h.
References m_StartNow.
00119 { m_StartNow = true; };
eGameObject* eChannelSDLMixer::GetOwner | ( | ) | [inline] |
int eChannelSDLMixer::numChannels [static] |
Definition at line 120 of file eChannelSDLMixer.h.
eWavData eChannelSDLMixer::m_Sound [private] |
Definition at line 128 of file eChannelSDLMixer.h.
bool eChannelSDLMixer::m_Delayed [private] |
bool eChannelSDLMixer::m_StartNow [private] |
int eChannelSDLMixer::m_Volume [private] |
Definition at line 131 of file eChannelSDLMixer.h.
int eChannelSDLMixer::m_ChannelID [private] |
Uint32 eChannelSDLMixer::m_StartTime [private] |
bool eChannelSDLMixer::m_isDirty [private] |
bool eChannelSDLMixer::m_isPlaying [private] |
eGameObject* eChannelSDLMixer::m_Owner [private] |
Definition at line 136 of file eChannelSDLMixer.h.
eGameObject* eChannelSDLMixer::m_Home [private] |
Definition at line 137 of file eChannelSDLMixer.h.
bool eChannelSDLMixer::m_continuous [private] |
Definition at line 138 of file eChannelSDLMixer.h.