-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move debug logging into RtpPacket event
- Loading branch information
Showing
4 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
mod client_disconnect; | ||
mod driver_connect; | ||
mod driver_disconnect; | ||
mod rtp_packet; | ||
mod speaking_state_update; | ||
mod voice_tick; | ||
|
||
pub use client_disconnect::client_disconnect; | ||
pub use driver_connect::driver_connect; | ||
pub use driver_disconnect::driver_disconnect; | ||
pub use rtp_packet::rtp_packet; | ||
pub use speaking_state_update::speaking_state_update; | ||
pub use voice_tick::{voice_tick, VoiceTickContext}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use serenity::model::id::GuildId; | ||
use songbird::events::context_data::RtpData; | ||
|
||
pub fn rtp_packet(rtp_packet: &RtpData, guild_id: GuildId) { | ||
let rtp_packet = rtp_packet.rtp(); | ||
let ssrc = rtp_packet.get_ssrc(); | ||
let timestamp = rtp_packet.get_timestamp().0; | ||
let sequence = rtp_packet.get_sequence().0; | ||
|
||
trace!( | ||
%guild_id, | ||
%ssrc, | ||
"debug_log_audio_data: RTP packet data: sequence {}, timestamp {}", | ||
sequence, | ||
timestamp, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters