Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
typester committed Dec 17, 2024
1 parent 3d9168a commit c8189e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/play_from_disk/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ async fn main() -> Result<(), Box<dyn Error>> {
.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()));
Expand Down

0 comments on commit c8189e6

Please sign in to comment.