|
CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
|
Utility class for accessing Theme Hospital's SOUND-0.DAT. More...
#include <th_sound.h>
Public Member Functions | |
| bool | load_from_th_file (const uint8_t *pData, size_t iDataLength) |
| size_t | get_number_of_sounds () const |
| Returns the number of sounds present in the archive. | |
| const char * | get_sound_name (size_t iIndex) const |
| Gets the name of the sound at a given index. | |
| size_t | get_sound_duration (size_t iIndex) |
| Gets the duration (in milliseconds) of the sound at a given index. | |
| SDL_RWops * | load_sound (size_t iIndex) |
| Opens the sound at a given index into an SDL_RWops structure. | |
Utility class for accessing Theme Hospital's SOUND-0.DAT.
| size_t sound_archive::get_number_of_sounds | ( | ) | const |
Returns the number of sounds present in the archive.
| size_t sound_archive::get_sound_duration | ( | size_t | iIndex | ) |
Gets the duration (in milliseconds) of the sound at a given index.
Gets the name of the sound at a given index.
| SDL_RWops * sound_archive::load_sound | ( | size_t | iIndex | ) |
Opens the sound at a given index into an SDL_RWops structure.
The caller is responsible for closing/freeing the result.