Skip to content

Commit

Permalink
fixes for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonliang-dev committed Nov 19, 2023
1 parent 18673b9 commit 0937214
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static int mt_sound_gc(lua_State *L) {
}

static int mt_sound_frames(lua_State *L) {
u64 frames = 0;
unsigned long long frames = 0;
ma_result res = ma_sound_get_length_in_pcm_frames(sound_ma(L), &frames);
if (res != MA_SUCCESS) {
return 0;
Expand Down
9 changes: 9 additions & 0 deletions src/deps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
#define STB_VORBIS_HEADER_ONLY
#include "deps/stb_vorbis.c"

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
#endif

#define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
#define MA_ENABLE_WASAPI
#define MA_ENABLE_ALSA
Expand All @@ -100,5 +105,9 @@
#define MINIAUDIO_IMPLEMENTATION
#include "deps/miniaudio.h"

#ifdef __clang__
#pragma clang diagnostic pop
#endif

#undef STB_VORBIS_HEADER_ONLY
#include "deps/stb_vorbis.c"

0 comments on commit 0937214

Please sign in to comment.