libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moSound Class Reference

Clase base de sonido. More...

#include <moSoundManager.h>

Inheritance diagram for moSound:
moAbstract moSound3D

Public Member Functions

 moSound ()
 
virtual ~moSound ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
virtual moText GetName ()
 
virtual void SetName (moText name)
 
virtual moText GetFileName ()
 
virtual void SetFileName (moText filename)
 
moSoundType GetType ()
 
MOboolean LoadFromFile (moText filename)
 
MOboolean SupportedFile (moText p_filename)
 
virtual void Play ()
 
virtual void Stop ()
 
virtual void Pause ()
 
virtual void Rewind ()
 
virtual moStreamState State ()
 
virtual bool IsPlaying ()
 
virtual void Update ()
 
virtual MOulong GetPosition ()
 
virtual MOulong GetDuration ()
 
virtual MOulong GetSampleCount ()
 
virtual void Seek (int position, float rate=1.0)
 
virtual bool IsEOS ()
 
virtual void SetVolume (float gain)
 
virtual float GetVolume ()
 
virtual void SetPitch (float pitch)
 
virtual float GetPitch ()
 
virtual void SetBalance (float balance)
 
virtual float GetBalance ()
 
virtual void SetEchoDelay (float delay)
 
virtual float GetEchoDelay ()
 
virtual void SetEchoIntensity (float intensity)
 
virtual float GetEchoIntensity ()
 
virtual void SetEchoFeedback (float feedback)
 
virtual float GetEchoFeedback ()
 
moAudioFormatGetAudioFormat ()
 
MOint GetBufferSize ()
 
virtual void PlaySample (MOint sampleid)
 
MOint GetActualSample ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Protected Attributes

moText m_SoundName
 
moSoundType m_SoundType
 
moText m_FileName
 
moSoundParam m_SoundParam
 
moGsGraphm_pAudioGraph
 
moAudioFormat m_AudioFormat
 
float m_Position
 
float m_Volume
 
float m_Pitch
 
float m_Balance
 
float m_EchoDelay
 panorama More...
 
float m_EchoIntensity
 
float m_EchoFeedback
 
bool m_bIsPlaying
 
MOint m_BufferSize
 
MOint m_ActualSample
 
MOint m_OldSample
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

Clase base de sonido.

Clase base de sonido

Definition at line 140 of file moSoundManager.h.

Constructor & Destructor Documentation

moSound::moSound ( )
moSound::~moSound ( )
virtual

Definition at line 69 of file moSoundManager.cpp.

Member Function Documentation

MOboolean moSound::Finish ( )
virtual

Finaliza el objeto, libera recursos.

Función de finalización. Libera los recursos generados en la función de inicialización.

Returns
verdadero si fue exitosa o falso en otro caso

Reimplemented from moAbstract.

Reimplemented in moSound3D.

Definition at line 74 of file moSoundManager.cpp.

MOint moSound::GetActualSample ( )
inline

Definition at line 191 of file moSoundManager.h.

moAudioFormat& moSound::GetAudioFormat ( )
inline

Definition at line 188 of file moSoundManager.h.

float moSound::GetBalance ( )
virtual

Definition at line 260 of file moSoundManager.cpp.

MOint moSound::GetBufferSize ( )
inline

Definition at line 189 of file moSoundManager.h.

MOulong moSound::GetDuration ( )
virtual

Definition at line 207 of file moSoundManager.cpp.

float moSound::GetEchoDelay ( )
virtual

Definition at line 275 of file moSoundManager.cpp.

float moSound::GetEchoFeedback ( )
virtual

Definition at line 301 of file moSoundManager.cpp.

float moSound::GetEchoIntensity ( )
virtual

Definition at line 288 of file moSoundManager.cpp.

moText moSound::GetFileName ( )
virtual

Definition at line 98 of file moSoundManager.cpp.

moText moSound::GetName ( )
virtual

Definition at line 90 of file moSoundManager.cpp.

float moSound::GetPitch ( )
virtual

Reimplemented in moSound3D.

Definition at line 247 of file moSoundManager.cpp.

MOulong moSound::GetPosition ( )
virtual

Definition at line 194 of file moSoundManager.cpp.

MOulong moSound::GetSampleCount ( )
virtual

Definition at line 200 of file moSoundManager.cpp.

moSoundType moSound::GetType ( )

Definition at line 106 of file moSoundManager.cpp.

float moSound::GetVolume ( )
virtual

Reimplemented in moSound3D.

Definition at line 232 of file moSoundManager.cpp.

MOboolean moSound::Init ( )
virtual

Inicializa el objeto.

Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.

Returns
verdadero si fue exitosa o falso en otro caso

Reimplemented from moAbstract.

Reimplemented in moSound3D.

Definition at line 83 of file moSoundManager.cpp.

bool moSound::IsEOS ( )
virtual

Definition at line 217 of file moSoundManager.cpp.

bool moSound::IsPlaying ( )
virtual

Definition at line 180 of file moSoundManager.cpp.

MOboolean moSound::LoadFromFile ( moText  filename)

Definition at line 110 of file moSoundManager.cpp.

void moSound::Pause ( )
virtual

Reimplemented in moSound3D.

Definition at line 141 of file moSoundManager.cpp.

void moSound::Play ( )
virtual

Reimplemented in moSound3D.

Definition at line 135 of file moSoundManager.cpp.

void moSound::PlaySample ( MOint  sampleid)
virtual

Definition at line 306 of file moSoundManager.cpp.

void moSound::Rewind ( )
virtual

Reimplemented in moSound3D.

Definition at line 153 of file moSoundManager.cpp.

void moSound::Seek ( int  position,
float  rate = 1.0 
)
virtual

Definition at line 212 of file moSoundManager.cpp.

void moSound::SetBalance ( float  balance)
virtual

Definition at line 252 of file moSoundManager.cpp.

void moSound::SetEchoDelay ( float  delay)
virtual

Definition at line 266 of file moSoundManager.cpp.

void moSound::SetEchoFeedback ( float  feedback)
virtual

Definition at line 293 of file moSoundManager.cpp.

void moSound::SetEchoIntensity ( float  intensity)
virtual

Definition at line 280 of file moSoundManager.cpp.

void moSound::SetFileName ( moText  filename)
virtual

Definition at line 102 of file moSoundManager.cpp.

void moSound::SetName ( moText  name)
virtual

Definition at line 94 of file moSoundManager.cpp.

void moSound::SetPitch ( float  pitch)
virtual

Reimplemented in moSound3D.

Definition at line 238 of file moSoundManager.cpp.

void moSound::SetVolume ( float  gain)
virtual

Reimplemented in moSound3D.

Definition at line 223 of file moSoundManager.cpp.

moStreamState moSound::State ( )
virtual

Reimplemented in moSound3D.

Definition at line 158 of file moSoundManager.cpp.

void moSound::Stop ( )
virtual

Reimplemented in moSound3D.

Definition at line 146 of file moSoundManager.cpp.

MOboolean moSound::SupportedFile ( moText  p_filename)

Definition at line 124 of file moSoundManager.cpp.

void moSound::Update ( )
virtual

Reimplemented in moSound3D.

Definition at line 189 of file moSoundManager.cpp.

Member Data Documentation

MOint moSound::m_ActualSample
protected

Definition at line 215 of file moSoundManager.h.

moAudioFormat moSound::m_AudioFormat
protected

Definition at line 202 of file moSoundManager.h.

float moSound::m_Balance
protected

Definition at line 207 of file moSoundManager.h.

bool moSound::m_bIsPlaying
protected

Definition at line 213 of file moSoundManager.h.

MOint moSound::m_BufferSize
protected

Definition at line 214 of file moSoundManager.h.

float moSound::m_EchoDelay
protected

panorama

Definition at line 209 of file moSoundManager.h.

float moSound::m_EchoFeedback
protected

Definition at line 211 of file moSoundManager.h.

float moSound::m_EchoIntensity
protected

Definition at line 210 of file moSoundManager.h.

moText moSound::m_FileName
protected

Definition at line 197 of file moSoundManager.h.

MOint moSound::m_OldSample
protected

Definition at line 216 of file moSoundManager.h.

moGsGraph* moSound::m_pAudioGraph
protected

Definition at line 201 of file moSoundManager.h.

float moSound::m_Pitch
protected

Definition at line 206 of file moSoundManager.h.

float moSound::m_Position
protected

Definition at line 204 of file moSoundManager.h.

moText moSound::m_SoundName
protected

Definition at line 195 of file moSoundManager.h.

moSoundParam moSound::m_SoundParam
protected

Definition at line 199 of file moSoundManager.h.

moSoundType moSound::m_SoundType
protected

Definition at line 196 of file moSoundManager.h.

float moSound::m_Volume
protected

Definition at line 205 of file moSoundManager.h.


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