wineoss: Make some data const.
This commit is contained in:
parent
96bc4517c3
commit
b05173486a
|
@ -1000,8 +1000,8 @@ typedef struct sFMextra {
|
|||
*/
|
||||
} sFMextra;
|
||||
|
||||
extern unsigned char midiFMInstrumentPatches[16 * 128];
|
||||
extern unsigned char midiFMDrumsPatches [16 * 128];
|
||||
extern const unsigned char midiFMInstrumentPatches[16 * 128];
|
||||
extern const unsigned char midiFMDrumsPatches [16 * 128];
|
||||
|
||||
/**************************************************************************
|
||||
* modFMLoad [internal]
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#define NOT_DEFINED 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
||||
unsigned char midiFMInstrumentPatches[128 * 16] = {
|
||||
const unsigned char midiFMInstrumentPatches[128 * 16] = {
|
||||
/* 0 Acoustic Grand Piano */ 0x21, 0x11, 0x4c, 0x00, 0xf1, 0xf2, 0x63, 0x72, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
/* 1 Bright Acoustic Piano */ 0x01, 0x11, 0x4f, 0x00, 0xf1, 0xd2, 0x53, 0x74, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
/* 2 Electric Grand Piano */ 0x01, 0x01, 0x4f, 0x04, 0xf1, 0xd2, 0x50, 0x7c, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -157,7 +157,7 @@ unsigned char midiFMInstrumentPatches[128 * 16] = {
|
|||
/* 127 Gunshot */ 0x0c, 0x50, 0x00, 0x21, 0xf8, 0x09, 0xb6, 0x04, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
unsigned char midiFMDrumsPatches[16 * 128] = {
|
||||
const unsigned char midiFMDrumsPatches[16 * 128] = {
|
||||
/* 1 Not defined */ NOT_DEFINED
|
||||
/* 2 Not defined */ NOT_DEFINED
|
||||
/* 3 Not defined */ NOT_DEFINED
|
||||
|
@ -287,5 +287,3 @@ unsigned char midiFMDrumsPatches[16 * 128] = {
|
|||
/* 127 Not defined */ NOT_DEFINED
|
||||
/* 128 Not defined */ NOT_DEFINED
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -79,8 +79,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(mixer);
|
|||
|
||||
/* FIXME: the two following string arrays should be moved to a resource file in a string table */
|
||||
/* if it's done, better use a struct to hold labels, name, and muted channel volume cache */
|
||||
static const char* MIX_Labels[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
|
||||
static const char* MIX_Names [SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
|
||||
static const char * const MIX_Labels[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
|
||||
static const char * const MIX_Names [SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
|
||||
|
||||
struct mixerCtrl
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue