2022-07-10 11:32:21 -05:00
|
|
|
#ifndef MUSIC_H
|
|
|
|
#define MUSIC_H
|
|
|
|
|
|
|
|
#include "tsf.h"
|
|
|
|
#include "tml.h"
|
|
|
|
|
|
|
|
struct dsp_midi_song {
|
|
|
|
float bpm;
|
|
|
|
double time;
|
|
|
|
tsf *sf;
|
|
|
|
tml_message *midi;
|
|
|
|
};
|
|
|
|
|
2022-07-11 23:21:57 -05:00
|
|
|
extern float music_pan;
|
|
|
|
|
2022-07-10 11:32:21 -05:00
|
|
|
void play_song(const char *midi, const char *sf);
|
2023-01-15 23:27:28 -06:00
|
|
|
void music_stop();
|
2022-07-10 11:32:21 -05:00
|
|
|
void dsp_midi_fillbuf(struct dsp_midi_song *song, void *out, int n);
|
|
|
|
|
2022-11-25 07:12:31 -06:00
|
|
|
#endif
|