1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 09:23:02 +01: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 = [
"-std=gnu99",
"-DAUDIO",
"-DGAMES",
"-DPACKAGE_DATADIR='\"data\"'",
"-DPYTHON",
"-DQRCODE",
@ -44,4 +45,5 @@ sh_test(
name = "toxic_test",
srcs = [":toxic"],
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;
#ifdef AUDIO
if (user_settings->VAD_threshold >= 0.0f) {
if (user_settings->VAD_threshold >= 0.0) {
device->VAD_threshold = user_settings->VAD_threshold;
}