◆ init()
static void Titanic::CMusicRoomInstrument::init |
( |
| ) |
|
|
static |
Handles initialization of static fields
◆ deinit()
static void Titanic::CMusicRoomInstrument::deinit |
( |
| ) |
|
|
static |
Deinitialization of static fields
◆ setFilesCount()
void Titanic::CMusicRoomInstrument::setFilesCount |
( |
uint |
count | ) |
|
Sets the maximum number of allowed files that be defined
◆ load()
void Titanic::CMusicRoomInstrument::load |
( |
int |
index, |
|
|
const CString & |
filename, |
|
|
int |
v3 |
|
) |
| |
Loads a new file into the list of available entries
◆ start()
void Titanic::CMusicRoomInstrument::start |
( |
| ) |
|
Starts the music and associated animations
◆ stop()
void Titanic::CMusicRoomInstrument::stop |
( |
| ) |
|
Stops the music and associated animations
◆ update()
void Titanic::CMusicRoomInstrument::update |
( |
int |
val | ) |
|
Handles regular updates of the instrument, allowing associated objects to start animations as the music is played
◆ clear()
void Titanic::CMusicRoomInstrument::clear |
( |
| ) |
|
◆ reset()
void Titanic::CMusicRoomInstrument::reset |
( |
uint |
total | ) |
|
Resets the instrument, and sets the maximum for how much data can be read from the wave files during each read action
◆ read()
int Titanic::CMusicRoomInstrument::read |
( |
int16 * |
ptr, |
|
|
uint |
size |
|
) |
| |
If there is any wave file currently specified, reads it in and merges it into the supplied buffer
◆ chooseWaveFile()
void Titanic::CMusicRoomInstrument::chooseWaveFile |
( |
int |
index, |
|
|
int |
freq |
|
) |
| |
Figure out which wave file to use next
The documentation for this class was generated from the following file: