Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
jar_mod.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sample
 
struct  note
 
struct  module
 
struct  channel
 
struct  jar_mod_context_t
 
struct  track_state_
 
struct  tracker_state_
 
struct  tracker_state_instrument_
 
struct  jar_mod_tracker_buffer_state_
 

Macros

#define JARMOD_MALLOC(sz)   malloc(sz)
 
#define JARMOD_FREE(p)   free(p)
 
#define NUMMAXCHANNELS   32
 
#define MAXNOTES   12*12
 
#define DEFAULT_SAMPLE_RATE   48000
 

Typedefs

typedef unsigned char muchar
 
typedef unsigned short muint
 
typedef short mint
 
typedef unsigned long mulong
 
typedef struct track_state_ track_state
 
typedef struct tracker_state_ tracker_state
 
typedef struct tracker_state_instrument_ tracker_state_instrument
 
typedef struct jar_mod_tracker_buffer_state_ jar_mod_tracker_buffer_state
 

Functions

bool jar_mod_init (jar_mod_context_t *modctx)
 
bool jar_mod_setcfg (jar_mod_context_t *modctx, int samplerate, int bits, int stereo, int stereo_separation, int filter)
 
void jar_mod_fillbuffer (jar_mod_context_t *modctx, short *outbuffer, unsigned long nbsample, jar_mod_tracker_buffer_state *trkbuf)
 
void jar_mod_unload (jar_mod_context_t *modctx)
 
mulong jar_mod_load_file (jar_mod_context_t *modctx, const char *filename)
 
mulong jar_mod_current_samples (jar_mod_context_t *modctx)
 
mulong jar_mod_max_samples (jar_mod_context_t *modctx)
 
void jar_mod_seek_start (jar_mod_context_t *ctx)
 

Macro Definition Documentation

◆ DEFAULT_SAMPLE_RATE

#define DEFAULT_SAMPLE_RATE   48000

Definition at line 101 of file jar_mod.h.

◆ JARMOD_FREE

#define JARMOD_FREE (   p)    free(p)

Definition at line 89 of file jar_mod.h.

◆ JARMOD_MALLOC

#define JARMOD_MALLOC (   sz)    malloc(sz)

Definition at line 86 of file jar_mod.h.

◆ MAXNOTES

#define MAXNOTES   12*12

Definition at line 100 of file jar_mod.h.

◆ NUMMAXCHANNELS

#define NUMMAXCHANNELS   32

Definition at line 99 of file jar_mod.h.

Typedef Documentation

◆ jar_mod_tracker_buffer_state

◆ mint

typedef short mint

Definition at line 96 of file jar_mod.h.

◆ muchar

typedef unsigned char muchar

Definition at line 94 of file jar_mod.h.

◆ muint

typedef unsigned short muint

Definition at line 95 of file jar_mod.h.

◆ mulong

typedef unsigned long mulong

Definition at line 97 of file jar_mod.h.

◆ track_state

typedef struct track_state_ track_state

◆ tracker_state

typedef struct tracker_state_ tracker_state

◆ tracker_state_instrument

Function Documentation

◆ jar_mod_current_samples()

mulong jar_mod_current_samples ( jar_mod_context_t modctx)

◆ jar_mod_fillbuffer()

void jar_mod_fillbuffer ( jar_mod_context_t modctx,
short *  outbuffer,
unsigned long  nbsample,
jar_mod_tracker_buffer_state trkbuf 
)
+ Here is the caller graph for this function:

◆ jar_mod_init()

bool jar_mod_init ( jar_mod_context_t modctx)
+ Here is the caller graph for this function:

◆ jar_mod_load_file()

mulong jar_mod_load_file ( jar_mod_context_t modctx,
const char *  filename 
)
+ Here is the caller graph for this function:

◆ jar_mod_max_samples()

mulong jar_mod_max_samples ( jar_mod_context_t modctx)
+ Here is the caller graph for this function:

◆ jar_mod_seek_start()

void jar_mod_seek_start ( jar_mod_context_t ctx)
+ Here is the caller graph for this function:

◆ jar_mod_setcfg()

bool jar_mod_setcfg ( jar_mod_context_t modctx,
int  samplerate,
int  bits,
int  stereo,
int  stereo_separation,
int  filter 
)

◆ jar_mod_unload()

void jar_mod_unload ( jar_mod_context_t modctx)
+ Here is the caller graph for this function: