Applied a whole slew of patches, getting RAM usage down by a further 10 MB.

This commit is contained in:
OBattler
2018-03-19 01:02:04 +01:00
parent b6c393cc91
commit b1efb99ed6
222 changed files with 9538 additions and 9980 deletions

View File

@@ -25,10 +25,10 @@ typedef struct
{
const char *name;
const char *internal_name;
device_t *device;
const device_t *device;
} MIDI_DEVICE;
static MIDI_DEVICE devices[] =
static const MIDI_DEVICE devices[] =
{
{"None", "none", NULL},
#ifdef USE_FLUIDSYNTH
@@ -57,7 +57,7 @@ char *midi_device_getname(int card)
return (char *) devices[card].name;
}
device_t *midi_device_getdevice(int card)
const device_t *midi_device_getdevice(int card)
{
return devices[card].device;
}