From 066389a29fc6391c48c913494e84880d3b884525 Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Thu, 1 Dec 2022 14:39:07 +0100 Subject: [PATCH] thanks dawn --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 958676d..6558750 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ android = [] #winit = { path = "./3rdparty/winit", optional = true, default_features = false, features = ["x11"] } #sdl2 = { path = "./3rdparty/rust-sdl2", optional = true, features = ["unsafe_textures", "bundled", "static-link"] } #sdl2-sys = { path = "./3rdparty/rust-sdl2/sdl2-sys", optional = true, features = ["bundled", "static-link"] } -cpal = { path = "./3rdparty/cpal" } +#cpal = { path = "./3rdparty/cpal" } byteorder = "1.4" case_insensitive_hashmap = "1.0.0" chrono = { version = "0.4", default-features = false, features = ["clock", "std"] } @@ -89,6 +89,9 @@ webbrowser = { version = "0.8", optional = true } winit = { version = "0.27", optional = true, default_features = false, features = ["x11"] } xmltree = "0.10" +[target.'cfg(not(target_os = "horizon"))'.dependencies] +cpal = "0.14" + [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "0.3", features = ["winuser"] } @@ -106,4 +109,5 @@ jni = "0.20" [target.'cfg(target_os = "horizon")'.dependencies] #deko3d = { path = "./3rdparty/deko3d" } +cpal = { git = "https://github.com/doukutsu-rs/cpal", branch = "master" } deko3d = { git = "https://github.com/doukutsu-rs/deko3d-rs", branch = "master" }