Remove the USE_OPENAL define as the reason for its introduction is gone
This commit is contained in:
@@ -14,10 +14,8 @@
|
||||
#include <86box/midi.h>
|
||||
|
||||
|
||||
#ifdef USE_OPENAL
|
||||
extern void givealbuffer_midi(void *buf, uint32_t size);
|
||||
extern void al_set_midi(int freq, int buf_size);
|
||||
#endif
|
||||
|
||||
static void display_mt32_message(void *instance_data, const char *message);
|
||||
|
||||
@@ -193,9 +191,7 @@ static void mt32_thread(void *param)
|
||||
buf_pos += bsize;
|
||||
if (buf_pos >= buf_size)
|
||||
{
|
||||
#ifdef USE_OPENAL
|
||||
givealbuffer_midi(buffer, buf_size / sizeof(float));
|
||||
#endif
|
||||
buf_pos = 0;
|
||||
}
|
||||
}
|
||||
@@ -207,9 +203,7 @@ static void mt32_thread(void *param)
|
||||
buf_pos += bsize;
|
||||
if (buf_pos >= buf_size)
|
||||
{
|
||||
#ifdef USE_OPENAL
|
||||
givealbuffer_midi(buffer_int16, buf_size / sizeof(int16_t));
|
||||
#endif
|
||||
buf_pos = 0;
|
||||
}
|
||||
}
|
||||
@@ -261,9 +255,7 @@ void* mt32emu_init(char *control_rom, char *pcm_rom)
|
||||
mt32emu_set_reversed_stereo_enabled(context, device_get_config_int("reversed_stereo"));
|
||||
mt32emu_set_nice_amp_ramp_enabled(context, device_get_config_int("nice_ramp"));
|
||||
|
||||
#ifdef USE_OPENAL
|
||||
al_set_midi(samplerate, buf_size);
|
||||
#endif
|
||||
|
||||
dev = malloc(sizeof(midi_device_t));
|
||||
memset(dev, 0, sizeof(midi_device_t));
|
||||
|
||||
Reference in New Issue
Block a user