LMMS
Loading...
Searching...
No Matches
Music_Player Class Reference

#include <Music_Player.h>

Public Types

typedef short sample_t

Public Member Functions

gme_err_t init (long sample_rate=44100)
gme_err_t load_file (const char *path)
gme_err_t start_track (int track)
void stop ()
int track_count () const
gme_info_t consttrack_info () const
void pause (int)
bool track_ended () const
Music_Emuemu () const
void set_stereo_depth (double)
void enable_accuracy (bool)
void set_tempo (double)
void mute_voices (int)
void set_scope_buffer (sample_t *buf, int size)
 Music_Player ()
 ~Music_Player ()

Private Member Functions

void suspend ()
void resume ()

Static Private Member Functions

static void fill_buffer (void *, sample_t *, int)

Private Attributes

Music_Emuemu_
sample_tscope_buf
long sample_rate
int scope_buf_size
bool paused
gme_info_ttrack_info_

Member Typedef Documentation

◆ sample_t

typedef short Music_Player::sample_t

Constructor & Destructor Documentation

◆ Music_Player()

Music_Player::Music_Player ( )

◆ ~Music_Player()

Music_Player::~Music_Player ( )

Member Function Documentation

◆ emu()

Music_Emu * Music_Player::emu ( ) const
inline

◆ enable_accuracy()

void Music_Player::enable_accuracy ( bool b)

◆ fill_buffer()

void Music_Player::fill_buffer ( void * data,
sample_t * out,
int count )
staticprivate

◆ init()

gme_err_t Music_Player::init ( long sample_rate = 44100)

◆ load_file()

gme_err_t Music_Player::load_file ( const char * path)

◆ mute_voices()

void Music_Player::mute_voices ( int mask)

◆ pause()

void Music_Player::pause ( int b)

◆ resume()

void Music_Player::resume ( )
private

◆ set_scope_buffer()

void Music_Player::set_scope_buffer ( sample_t * buf,
int size )
inline

◆ set_stereo_depth()

void Music_Player::set_stereo_depth ( double tempo)

◆ set_tempo()

void Music_Player::set_tempo ( double tempo)

◆ start_track()

gme_err_t Music_Player::start_track ( int track)

◆ stop()

void Music_Player::stop ( )

◆ suspend()

void Music_Player::suspend ( )
private

◆ track_count()

int Music_Player::track_count ( ) const

◆ track_ended()

bool Music_Player::track_ended ( ) const

◆ track_info()

gme_info_t const & Music_Player::track_info ( ) const
inline

Member Data Documentation

◆ emu_

Music_Emu* Music_Player::emu_
private

◆ paused

bool Music_Player::paused
private

◆ sample_rate

long Music_Player::sample_rate
private

◆ scope_buf

sample_t* Music_Player::scope_buf
private

◆ scope_buf_size

int Music_Player::scope_buf_size
private

◆ track_info_

gme_info_t* Music_Player::track_info_
private

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