(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])

This commit is contained in:
tron
2005-03-12 09:38:03 +00:00
parent 70be35f319
commit f04780e66d
8 changed files with 201 additions and 168 deletions

4
ttd.c
View File

@@ -8,6 +8,7 @@
#define VARDEF
#include "ttd.h"
#include "mixer.h"
#include "spritecache.h"
#include "gfx.h"
#include "gui.h"
@@ -626,7 +627,8 @@ int ttd_main(int argc, char* argv[])
// Sample catalogue
DEBUG(misc, 1) ("Loading sound effects...");
_os_version = GetOSVersion();
MxInitialize(11025, "sample.cat");
MxInitialize(11025);
SoundInitialize("sample.cat");
// This must be done early, since functions use the InvalidateWindow* calls
InitWindowSystem();