Driver Connect Seems to not Connect

This commit is contained in:
2023-03-13 18:11:52 -04:00
parent 9fdea3d643
commit c47eff4fc9

View File

@@ -151,6 +151,11 @@ pub async fn join(ctx: Context, guild: Guild, cid: ChannelId) -> Option<Arc<Mute
CoreEvent::DriverConnect.into(),
Receiver::new(call_handle.clone()),
);
let ding_src =
std::env::var("DING_SOUND").expect("DING not found in DING_SOUND");
let ding = ffmpeg(ding_src).await.expect("no ding.");
let (audio, handle) = create_player(ding);
call.play(audio);
}
return Some(call);
}