From c8189e6de87d2fd43da9bc570cc495886c29858e Mon Sep 17 00:00:00 2001 From: Daisuke Murase Date: Mon, 16 Dec 2024 16:07:04 -0800 Subject: [PATCH] fix compilation error --- examples/play_from_disk/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/play_from_disk/src/main.rs b/examples/play_from_disk/src/main.rs index b96d4e5c..6aed66fb 100644 --- a/examples/play_from_disk/src/main.rs +++ b/examples/play_from_disk/src/main.rs @@ -123,12 +123,13 @@ async fn main() -> Result<(), Box> { .await .unwrap(); let room = Arc::new(room); - log::info!("Connected to room: {} - {}", room.name(), room.sid()); + log::info!("Connected to room: {} - {}", room.name(), room.sid().await); let source = NativeAudioSource::new( AudioSourceOptions::default(), header.sample_rate, header.num_channels as u32, + 1000, ); let track = LocalAudioTrack::create_audio_track("file", RtcAudioSource::Native(source.clone()));