diff options
author | Nicholas Tay <nick@windblume.net> | 2022-05-17 18:57:48 +1000 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-05-17 19:06:25 +1000 |
commit | d3ea90f183a1742fe205f06ec6543f65869a6799 (patch) | |
tree | 5d38f0e9e2dd794fcdfaaeae9895c0bd101dd175 /platform/win32.c | |
parent | 2fee408d6fe0964e245dc0bae90027baa13b159a (diff) | |
download | clak-d3ea90f183a1742fe205f06ec6543f65869a6799.tar.gz clak-d3ea90f183a1742fe205f06ec6543f65869a6799.tar.bz2 clak-d3ea90f183a1742fe205f06ec6543f65869a6799.zip |
Add Linux support
Oh boy this was a bit of a hassle lol - dynamic loading was the easiest
part... but then came both sound and x11
Using SDL for now but I'd really like to change it for even lower layer,
but then I might have to make my own mixer... oh no.
Diffstat (limited to 'platform/win32.c')
-rw-r--r-- | platform/win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/win32.c b/platform/win32.c index 1dccc7b..0b1da80 100644 --- a/platform/win32.c +++ b/platform/win32.c @@ -19,7 +19,7 @@ bool sound_init(float volume) return true; } -void sound_play(unsigned char *buffer) +void sound_play(unsigned char *buffer, unsigned int) { PlaySound((const char *) buffer, NULL, SND_MEMORY | SND_ASYNC | SND_NODEFAULT); } @@ -107,4 +107,4 @@ struct board *load_board(char *board_name) .sound_play = &sound_play }; return board_init(data); -}
\ No newline at end of file +} |