mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 14:53:02 +01:00
Fix bazel build for games.
This commit is contained in:
parent
17e5cc1147
commit
da90ca8b74
@ -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",
|
||||||
)
|
)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user