1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-26 20:37:46 +02:00

Fix bazel build for games.

This commit is contained in:
iphydf 2021-12-10 17:52:43 +00:00
parent 17e5cc1147
commit da90ca8b74
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ cc_binary(
copts = [ copts = [
"-std=gnu99", "-std=gnu99",
"-DAUDIO", "-DAUDIO",
"-DGAMES",
"-DPACKAGE_DATADIR='\"data\"'", "-DPACKAGE_DATADIR='\"data\"'",
"-DPYTHON", "-DPYTHON",
"-DQRCODE", "-DQRCODE",
@ -44,4 +45,5 @@ sh_test(
name = "toxic_test", name = "toxic_test",
srcs = [":toxic"], srcs = [":toxic"],
args = ["--help"], args = ["--help"],
size = "small",
) )

View File

@ -530,7 +530,7 @@ static DeviceError open_device(DeviceType type, uint32_t *device_idx, DataHandle
device->cb_data = cb_data; device->cb_data = cb_data;
#ifdef AUDIO #ifdef AUDIO
if (user_settings->VAD_threshold >= 0.0f) { if (user_settings->VAD_threshold >= 0.0) {
device->VAD_threshold = user_settings->VAD_threshold; device->VAD_threshold = user_settings->VAD_threshold;
} }