Skip to content

Noticeable delay between playing (streaming) different, in-memory inputs. #223

Discussion options

You must be logged in to vote

You're perhaps looking too far ahead -- you should be looking for where the packet data is built/encrypted/... in the mixer task, and then placed into self.packets. The important part is in the mixer task:

fn mix_tracks(&mut self, packet: &mut [u8]) -> MixType {
// Get a slice of bytes to write in data for Opus packet passthrough.
let mut rtp = MutableRtpPacket::new(packet).expect(
"FATAL: Too few bytes in self.packet for RTP header.\
(Blame: VOICE_PACKET_MAX?)",
);
let payload = rtp.payload_mut();
let opus_frame = &mut payload[TAG_SIZE..];
// Opus frame passthrough.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@FelixMcFelix
Comment options

@Pranav-Badrinathan
Comment options

@Pranav-Badrinathan
Comment options

@FelixMcFelix
Comment options

Answer selected by Pranav-Badrinathan
@Pranav-Badrinathan
Comment options

@Pranav-Badrinathan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants