vkQuake2 doxygen  1.0 dev
jar_mod.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>

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 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 104 of file jar_mod.h.

◆ MAXNOTES

#define MAXNOTES   12*12

Definition at line 103 of file jar_mod.h.

◆ NUMMAXCHANNELS

#define NUMMAXCHANNELS   32

Definition at line 102 of file jar_mod.h.

Typedef Documentation

◆ jar_mod_tracker_buffer_state

◆ mint

typedef short mint

Definition at line 99 of file jar_mod.h.

◆ muchar

typedef unsigned char muchar

Definition at line 97 of file jar_mod.h.

◆ muint

typedef unsigned short muint

Definition at line 98 of file jar_mod.h.

◆ mulong

typedef unsigned long mulong

Definition at line 100 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 
)

◆ jar_mod_init()

bool jar_mod_init ( jar_mod_context_t modctx)

◆ jar_mod_load_file()

mulong jar_mod_load_file ( jar_mod_context_t modctx,
const char *  filename 
)

◆ jar_mod_max_samples()

mulong jar_mod_max_samples ( jar_mod_context_t modctx)

◆ jar_mod_seek_start()

void jar_mod_seek_start ( jar_mod_context_t ctx)

◆ 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)