libsidplayfp  0.3.5
Classes | Public Member Functions
SidDatabase Class Reference

#include <SidDatabase.h>

List of all members.

Classes

class  parseError

Public Member Functions

int open (const char *filename)
void close ()
int_least32_t length (SidTuneMod &tune)
int_least32_t length (const char *md5, uint_least16_t song)
const char * error (void)
 Get descriptive error message.

Detailed Description

SidDatabase An utility class to deal with the songlength DataBase.


Member Function Documentation

void SidDatabase::close ( )

Close the songlength DataBase.

int_least32_t SidDatabase::length ( SidTuneMod tune)

Get the length of the current subtune.

Parameters:
tune
Returns:
tune length in seconds, -1 in case of errors.
int_least32_t SidDatabase::length ( const char *  md5,
uint_least16_t  song 
)

Get the length of the selected subtune.

Parameters:
md5the md5 hash of the tune.
songthe subtune.
Returns:
tune length in seconds, -1 in case of errors.
int SidDatabase::open ( const char *  filename)

Open the songlength DataBase.

Parameters:
filenamesonglengthDB file name with full path.
Returns:
-1 in case of errors, 0 otherwise.

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