OpenXcom  1.0
Open-source clone of the original X-Com
Public Member Functions | List of all members
OpenXcom::GMCatFile Class Reference

Subclass of CatFile to handle gm.cat files that contain MIDI music streams. More...

#include <GMCat.h>

Inheritance diagram for OpenXcom::GMCatFile:
OpenXcom::CatFile

Public Member Functions

 GMCatFile (const char *path)
 Inherit constructor.
 
MusicloadMIDI (unsigned int i)
 Loads a stream as a MIDI file. More...
 
- Public Member Functions inherited from OpenXcom::CatFile
 CatFile (const char *path)
 Creates a CAT file stream. More...
 
 ~CatFile ()
 Cleans up the stream. More...
 
bool operator ! () const
 Inherit operator.
 
int getAmount () const
 Get amount of objects.
 
unsigned int getObjectSize (unsigned int i) const
 Get object size.
 
char * load (unsigned int i, bool name=false)
 Load an object into memory. More...
 

Detailed Description

Subclass of CatFile to handle gm.cat files that contain MIDI music streams.

Member Function Documentation

◆ loadMIDI()

Music * OpenXcom::GMCatFile::loadMIDI ( unsigned int  i)

Loads a stream as a MIDI file.

Loads a MIDI object into memory.

Parameters
iMusic number to load.
Returns
Pointer to the loaded music.

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