prosperon/source/engine/mix.h

27 lines
364 B
C
Raw Normal View History

2022-07-05 20:49:51 -05:00
#ifndef MIX_H
#define MIX_H
2022-07-06 17:17:06 -05:00
#include "dsp.h"
2022-07-05 20:49:51 -05:00
struct sound;
struct bus {
int on;
2022-07-06 17:17:06 -05:00
struct dsp_filter in;
2022-07-05 20:49:51 -05:00
short buf[BUF_FRAMES*CHANNELS];
};
2022-07-11 23:21:57 -05:00
struct listener {
float x;
float y;
float z;
};
2022-07-05 20:49:51 -05:00
extern short mastermix[BUF_FRAMES*CHANNELS];
2022-07-06 17:17:06 -05:00
struct bus *first_free_bus(struct dsp_filter in);
void bus_fill_buffers(short *master, int n);
2022-07-05 20:49:51 -05:00
#endif