fix android build

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-05-12 14:01:56 +08:00
parent ea802ff74f
commit 5738f3a949
3 changed files with 23 additions and 18 deletions

View File

@@ -754,6 +754,7 @@ pub struct AudioHandler {
#[cfg(not(any(target_os = "android", target_os = "linux")))]
audio_stream: Option<Box<dyn StreamTrait>>,
channels: u16,
#[cfg(not(any(target_os = "android", target_os = "linux")))]
device_channel: u16,
#[cfg(not(any(target_os = "android", target_os = "linux")))]
ready: Arc<std::sync::Mutex<bool>>,