Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Typedefs | Functions
opl3.h File Reference
#include <inttypes.h>
Include dependency graph for opl3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _opl3_slot
 
struct  _opl3_channel
 
struct  _opl3_writebuf
 
struct  _opl3_chip
 

Macros

#define OPL_WRITEBUF_SIZE   1024
 
#define OPL_WRITEBUF_DELAY   2
 

Typedefs

typedef struct _opl3_slot opl3_slot
 
typedef struct _opl3_channel opl3_channel
 
typedef struct _opl3_chip opl3_chip
 
typedef struct _opl3_writebuf opl3_writebuf
 

Functions

void OPL3_Generate (opl3_chip *chip, int16_t *buf)
 
void OPL3_GenerateResampled (opl3_chip *chip, int16_t *buf1, int16_t *buf2)
 
void OPL3_Reset (opl3_chip *chip, uint32_t samplerate)
 
void OPL3_WriteReg (opl3_chip *chip, uint16_t reg, uint8_t v)
 
void OPL3_WriteRegBuffered (opl3_chip *chip, uint16_t reg, uint8_t v)
 
void OPL3_GenerateStream (opl3_chip *chip, int16_t *sndptr1, int16_t *sndptr2, uint32_t numsamples, const uint32_t increment1, const uint32_t increment2)
 

Macro Definition Documentation

◆ OPL_WRITEBUF_DELAY

#define OPL_WRITEBUF_DELAY   2

Definition at line 39 of file opl3.h.

◆ OPL_WRITEBUF_SIZE

#define OPL_WRITEBUF_SIZE   1024

Definition at line 38 of file opl3.h.

Typedef Documentation

◆ opl3_channel

typedef struct _opl3_channel opl3_channel

Definition at line 42 of file opl3.h.

◆ opl3_chip

typedef struct _opl3_chip opl3_chip

Definition at line 43 of file opl3.h.

◆ opl3_slot

typedef struct _opl3_slot opl3_slot

Definition at line 41 of file opl3.h.

◆ opl3_writebuf

typedef struct _opl3_writebuf opl3_writebuf

Function Documentation

◆ OPL3_Generate()

void OPL3_Generate ( opl3_chip chip,
int16_t *  buf 
)

Definition at line 1050 of file opl3.c.

Here is the caller graph for this function:

◆ OPL3_GenerateResampled()

void OPL3_GenerateResampled ( opl3_chip chip,
int16_t *  buf1,
int16_t *  buf2 
)

Definition at line 1182 of file opl3.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OPL3_GenerateStream()

void OPL3_GenerateStream ( opl3_chip chip,
int16_t *  sndptr1,
int16_t *  sndptr2,
uint32_t  numsamples,
const uint32_t  increment1,
const uint32_t  increment2 
)

Definition at line 1372 of file opl3.c.

Here is the call graph for this function:

◆ OPL3_Reset()

void OPL3_Reset ( opl3_chip chip,
uint32_t  samplerate 
)

Definition at line 1198 of file opl3.c.

◆ OPL3_WriteReg()

void OPL3_WriteReg ( opl3_chip chip,
uint16_t  reg,
uint8_t  v 
)

Definition at line 1245 of file opl3.c.

Here is the caller graph for this function:

◆ OPL3_WriteRegBuffered()

void OPL3_WriteRegBuffered ( opl3_chip chip,
uint16_t  reg,
uint8_t  v 
)

Definition at line 1344 of file opl3.c.

Here is the call graph for this function: