LMMS
Loading...
Searching...
No Matches
Music_Player.cpp File Reference
#include "Music_Player.h"
#include <string.h>
#include <ctype.h>
#include "SDL.h"

Macros

#define RETURN_ERR(expr)

Typedefs

typedef void(* sound_callback_t) (void *data, short *out, int count)

Functions

static const char * sound_init (long sample_rate, int buf_size, sound_callback_t, void *data)
static void sound_start ()
static void sound_stop ()
static void sound_cleanup ()
static void sdl_callback (void *data, Uint8 *out, int count)

Variables

const int fill_rate = 45
static sound_callback_t sound_callback
static voidsound_callback_data

Macro Definition Documentation

◆ RETURN_ERR

#define RETURN_ERR ( expr)
Value:
do {\
gme_err_t err_ = (expr);\
if ( err_ )\
return err_;\
} while ( 0 )
const char * gme_err_t
Definition gme.h:14

Typedef Documentation

◆ sound_callback_t

typedef void(* sound_callback_t) (void *data, short *out, int count)

Function Documentation

◆ sdl_callback()

void sdl_callback ( void * data,
Uint8 * out,
int count )
static

◆ sound_cleanup()

void sound_cleanup ( )
static

◆ sound_init()

const char * sound_init ( long sample_rate,
int buf_size,
sound_callback_t cb,
void * data )
static

◆ sound_start()

void sound_start ( )
static

◆ sound_stop()

void sound_stop ( )
static

Variable Documentation

◆ fill_rate

const int fill_rate = 45

◆ sound_callback

sound_callback_t sound_callback
static

◆ sound_callback_data

void* sound_callback_data
static