Driver Connect Seems to not Connect
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user