10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <string.h>
#include "sqlite3.h"
#include "smallxrm.h"
#include "quarks.h"
#include "heromesh.h"
#include "cursorshapes.h"
typedef struct {
Uint8*data;
Uint32 len; // length in bytes
} WaveSound;
static Uint8 sound_on;
static Sint16 mmlvolume=10000;
|
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <string.h>
#include "sqlite3.h"
#include "smallxrm.h"
#include "quarks.h"
#include "heromesh.h"
#include "cursorshapes.h"
#ifndef CONFIG_OMIT_SOUND
typedef struct {
Uint8*data;
Uint32 len; // length in bytes
} WaveSound;
static Uint8 sound_on;
static Sint16 mmlvolume=10000;
|
499
500
501
502
503
504
505
|
}
break;
case SDL_VIDEOEXPOSE: goto redraw;
case SDL_QUIT: SDL_PushEvent(&ev); return;
}
}
}
|
>
>
>
>
>
>
>
>
>
|
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
|
}
break;
case SDL_VIDEOEXPOSE: goto redraw;
case SDL_QUIT: SDL_PushEvent(&ev); return;
}
}
}
#else
// CONFIG_OMIT_SOUND is defined
void init_sound(void) {}
void set_sound_effect(Value v1,Value v2) {}
Uint16 find_user_sound(const char*name) { return 0x03FF; }
void set_sound_on(int on) {}
void sound_test(void) {}
#endif
|