28 lines
376 B
C
28 lines
376 B
C
#ifndef SIDFX_H
|
|
#define SIDFX_H
|
|
|
|
#include <c64/sid.h>
|
|
|
|
struct SIDFX
|
|
{
|
|
unsigned freq, pwm;
|
|
byte ctrl, attdec, susrel;
|
|
int dfreq, dpwm;
|
|
byte time1, time0;
|
|
byte priority;
|
|
};
|
|
|
|
void sidfx_init(void);
|
|
|
|
inline void sidfx_play(byte chn, SIDFX * fx, byte cnt);
|
|
|
|
void sidfx_stop(byte chn);
|
|
|
|
void sidfx_loop(void);
|
|
|
|
void sidfx_loop_2(void);
|
|
|
|
#pragma compile("sidfx.c")
|
|
|
|
#endif
|