ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <music_manager.h>

Collaboration diagram for ICB::MusicManager:

List of all members.

Public Member Functions

 MusicManager ()
 ~MusicManager ()
bool8 UpdateMusic ()
bool8 LoadMusic (const char *clusterName, uint32 byteOffsetToWav, int32 vol=128)
bool8 StartMusic (const char *clusterName, uint32 byteOffsetToWav, int32 vol=128)
bool8 PlayMusic ()
void StopMusic ()
void SetMusicPausedStatus (bool8 p=TRUE8)
void SetMusicVolume (int volume)
bool8 IsPlaying ()
bool8 IsPaused ()
int GetLength ()

Private Member Functions

bool8 OpenMusic (Common::SeekableReadStream *stream)
void KillBuffer ()
void SetVolume (int volume)
void AdjustVolume (int amount)

Private Attributes

Audio::AudioStream_audioStream
Audio::SoundHandle _handle
uint32 m_bufferLength
int m_musicVol
uint32 m_wavByteOffsetInCluster
uint32 m_wavDataSize
bool8 m_paused
int m_lengthInCycles
int m_fading
int m_adjustFadeVol
uint32 m_identifier

Detailed Description

Definition at line 41 of file music_manager.h.


Constructor & Destructor Documentation

MusicManager::MusicManager (  ) 

Definition at line 43 of file music_manager.cpp.

MusicManager::~MusicManager (  ) 

Definition at line 61 of file music_manager.cpp.


Member Function Documentation

void MusicManager::AdjustVolume ( int  amount  )  [private]

Definition at line 229 of file music_manager.cpp.

int ICB::MusicManager::GetLength (  )  [inline]

Definition at line 75 of file music_manager.h.

bool8 ICB::MusicManager::IsPaused (  )  [inline]

Definition at line 74 of file music_manager.h.

bool8 MusicManager::IsPlaying (  ) 

Definition at line 210 of file music_manager.cpp.

void MusicManager::KillBuffer (  )  [private]

Definition at line 249 of file music_manager.cpp.

bool8 MusicManager::LoadMusic ( const char *  clusterName,
uint32  byteOffsetToWav,
int32  vol = 128 
)

Definition at line 97 of file music_manager.cpp.

bool8 MusicManager::OpenMusic ( Common::SeekableReadStream stream  )  [private]

Definition at line 236 of file music_manager.cpp.

bool8 MusicManager::PlayMusic (  ) 

Definition at line 152 of file music_manager.cpp.

void MusicManager::SetMusicPausedStatus ( bool8  p = TRUE8  ) 

Definition at line 180 of file music_manager.cpp.

void MusicManager::SetMusicVolume ( int  volume  ) 

Definition at line 203 of file music_manager.cpp.

void MusicManager::SetVolume ( int  volume  )  [private]

Definition at line 221 of file music_manager.cpp.

bool8 MusicManager::StartMusic ( const char *  clusterName,
uint32  byteOffsetToWav,
int32  vol = 128 
)

Definition at line 140 of file music_manager.cpp.

void MusicManager::StopMusic (  ) 

Definition at line 166 of file music_manager.cpp.

bool8 MusicManager::UpdateMusic (  ) 

Definition at line 69 of file music_manager.cpp.


Member Data Documentation

Definition at line 43 of file music_manager.h.

Definition at line 44 of file music_manager.h.

Definition at line 56 of file music_manager.h.

Definition at line 46 of file music_manager.h.

Definition at line 55 of file music_manager.h.

Definition at line 58 of file music_manager.h.

Definition at line 53 of file music_manager.h.

Definition at line 47 of file music_manager.h.

Definition at line 52 of file music_manager.h.

Definition at line 50 of file music_manager.h.


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


Generated on Sat Sep 26 2020 05:03:42 for ResidualVM by doxygen 1.7.1
curved edge   curved edge