Free Hero Mesh

Diff
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

Differences From Artifact [932918faf2]:

To Artifact [feb9ba4e2f]:


10
11
12
13
14
15
16


17
18
19
20
21
22
23
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









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