mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add silence padding after transmission breaks
Prevents unwanted interpolation/distortion of audio by sending silence packets after pausing or ending the audio stream.
This commit is contained in:
@ -72,6 +72,8 @@ __all__ = (
|
||||
|
||||
_log = logging.getLogger(__name__)
|
||||
|
||||
OPUS_SILENCE = b'\xF8\xFF\xFE'
|
||||
|
||||
c_int_ptr = ctypes.POINTER(ctypes.c_int)
|
||||
c_int16_ptr = ctypes.POINTER(ctypes.c_int16)
|
||||
c_float_ptr = ctypes.POINTER(ctypes.c_float)
|
||||
|
Reference in New Issue
Block a user