new AudioMixer
src/media/audiomixer.ts:26new AudioMixer(options?: AudioMixerOptions)Mixes multiple PCM sources (e.g. each user's decoded voice) into one continuous stream Packets are placed using their RTP timestamps, so jitter and bursts don't smear the audio Emits data with one mixed PCM frame (of format.frameDuration) at a steady rate while running Only signed 16-bit little-endian interleaved PCM is supported (what opus decoders output)
Mixes multiple PCM sources (e.g. each user's decoded voice) into one continuous stream Packets are placed using their RTP timestamps, so jitter and bursts don't smear the audio Emits data with one mixed PCM frame (of format.frameDuration) at a steady rate while running Only signed 16-bit little-endian interleaved PCM is supported (what opus decoders output)
import { AudioMixer } from 'detritus-client';new AudioMixer(options?: AudioMixerOptions)attach(connection: VoiceConnection): () => voidListens to a voice connection's decoded audio and mixes in every user that isMixing() allows Returns a function that detaches the listeners