Removed unused code
This commit is contained in:
@@ -27,10 +27,6 @@ static int16_t data[SOUNDBLASTER_SAMPLES_PER_BUFFER] = {0};
|
|||||||
static bool canmix = true;
|
static bool canmix = true;
|
||||||
|
|
||||||
|
|
||||||
void mixer_init(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int16_t const * mixer_getNextBlock(void) {
|
int16_t const * mixer_getNextBlock(void) {
|
||||||
canmix = true;
|
canmix = true;
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "source.h"
|
#include "source.h"
|
||||||
|
|
||||||
void mixer_init(void);
|
|
||||||
void mixer_deinit(void);
|
|
||||||
int16_t const* mixer_getNextBlock(void);
|
int16_t const* mixer_getNextBlock(void);
|
||||||
void mixer_play(source_t const *source);
|
void mixer_play(source_t const *source);
|
||||||
void mixer_mix(void);
|
void mixer_mix(void);
|
||||||
|
|||||||
@@ -13,13 +13,6 @@
|
|||||||
#include "wavefile.h"
|
#include "wavefile.h"
|
||||||
|
|
||||||
|
|
||||||
int source_initSilence(source_t *self, int samples) {
|
|
||||||
self->sampleCount = samples;
|
|
||||||
self->samples = (int16_t*)dmt_malloc(samples * sizeof(int16_t));
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
char const* source_init(source_t *self, char const* filename) {
|
char const* source_init(source_t *self, char const* filename) {
|
||||||
return wavefile_load(self, filename);
|
return wavefile_load(self, filename);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ typedef struct {
|
|||||||
int16_t *samples;
|
int16_t *samples;
|
||||||
} source_t;
|
} source_t;
|
||||||
|
|
||||||
int source_initSilence(source_t *self, int samples);
|
|
||||||
char const* source_init(source_t *self, char const* filename);
|
char const* source_init(source_t *self, char const* filename);
|
||||||
void source_deinit(source_t *self);
|
void source_deinit(source_t *self);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user