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
moSound3D Class Referenceabstract

Clase base de sonido. More...

#include <moSoundManager.h>

Inheritance diagram for moSound3D:
moSound moAbstract

Public Member Functions

 moSound3D ()
 
virtual ~moSound3D ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
virtual void Play ()=0
 
virtual void Stop ()=0
 
virtual void Pause ()=0
 
virtual void Rewind ()=0
 
virtual moStreamState State ()=0
 
virtual void Update ()=0
 
virtual void SetVolume (float gain)=0
 
virtual float GetVolume ()=0
 
virtual void SetPitch (float pitch)=0
 
virtual float GetPitch ()=0
 
virtual MOboolean BuildEmpty (MOuint p_size)=0
 
virtual MOboolean BuildFromBuffer (MOuint p_size, GLvoid *p_buffer)=0
 
virtual MOboolean BuildFromFile (const moText &p_filename)=0
 
MOint GetSourceId ()
 
MOuint GetBufferId ()
 
virtual void Final ()=0
 
virtual void Frame (int frame)=0
 
virtual void Repeat (int repeat)=0
 
void SetPosition (float x, float y, float z)
 
void SetVelocity (float x, float y, float z)
 
void SetDirection (float x, float y, float z)
 
- Public Member Functions inherited from moSound
 moSound ()
 
virtual ~moSound ()
 
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 bool IsPlaying ()
 
virtual MOulong GetPosition ()
 
virtual MOulong GetDuration ()
 
virtual MOulong GetSampleCount ()
 
virtual void Seek (int position, float rate=1.0)
 
virtual bool IsEOS ()
 
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...
 

Public Attributes

moFilem_pFile
 
moDataManagerm_pDataMan
 
moFileManagerm_pFileMan
 
MOuint m_SourceId
 
MOuint m_BufferId
 
- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 

Additional Inherited Members

- 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...
 
- Protected Attributes inherited from moSound
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
 

Detailed Description

Clase base de sonido.

Clase base de sonido

Definition at line 226 of file moSoundManager.h.

Constructor & Destructor Documentation

moSound3D::moSound3D ( )

OpenAl Sound - 3D + FX


Definition at line 318 of file moSoundManager.cpp.

moSound3D::~moSound3D ( )
virtual

Definition at line 321 of file moSoundManager.cpp.

Member Function Documentation

virtual MOboolean moSound3D::BuildEmpty ( MOuint  p_size)
pure virtual

OpenAL Specific

virtual MOboolean moSound3D::BuildFromBuffer ( MOuint  p_size,
GLvoid *  p_buffer 
)
pure virtual
virtual MOboolean moSound3D::BuildFromFile ( const moText p_filename)
pure virtual
virtual void moSound3D::Final ( )
pure virtual
MOboolean moSound3D::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 moSound.

Definition at line 325 of file moSoundManager.cpp.

virtual void moSound3D::Frame ( int  frame)
pure virtual
MOuint moSound3D::GetBufferId ( )
inline

Definition at line 259 of file moSoundManager.h.

virtual float moSound3D::GetPitch ( )
pure virtual

Reimplemented from moSound.

MOint moSound3D::GetSourceId ( )
inline

Definition at line 258 of file moSoundManager.h.

virtual float moSound3D::GetVolume ( )
pure virtual

Reimplemented from moSound.

MOboolean moSound3D::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 moSound.

Definition at line 331 of file moSoundManager.cpp.

virtual void moSound3D::Pause ( )
pure virtual

Reimplemented from moSound.

virtual void moSound3D::Play ( )
pure virtual

OVERRIDE moSound functions OpenAL es diferente a GStreamer

Reimplemented from moSound.

virtual void moSound3D::Repeat ( int  repeat)
pure virtual
virtual void moSound3D::Rewind ( )
pure virtual

Reimplemented from moSound.

void moSound3D::SetDirection ( float  x,
float  y,
float  z 
)

Definition at line 358 of file moSoundManager.cpp.

virtual void moSound3D::SetPitch ( float  pitch)
pure virtual

Reimplemented from moSound.

void moSound3D::SetPosition ( float  x,
float  y,
float  z 
)

Definition at line 340 of file moSoundManager.cpp.

void moSound3D::SetVelocity ( float  x,
float  y,
float  z 
)

Definition at line 349 of file moSoundManager.cpp.

virtual void moSound3D::SetVolume ( float  gain)
pure virtual

Reimplemented from moSound.

virtual moStreamState moSound3D::State ( )
pure virtual

Reimplemented from moSound.

virtual void moSound3D::Stop ( )
pure virtual

Reimplemented from moSound.

virtual void moSound3D::Update ( )
pure virtual

Reimplemented from moSound.

Member Data Documentation

MOuint moSound3D::m_BufferId

Definition at line 277 of file moSoundManager.h.

moDataManager* moSound3D::m_pDataMan

Definition at line 273 of file moSoundManager.h.

moFile* moSound3D::m_pFile

Definition at line 272 of file moSoundManager.h.

moFileManager* moSound3D::m_pFileMan

Definition at line 274 of file moSoundManager.h.

MOuint moSound3D::m_SourceId

Definition at line 276 of file moSoundManager.h.


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