From 9b3ccf5f0427204e047c93bd19729ed20cec0f96 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Mon, 12 Dec 2022 13:52:05 +0400 Subject: [PATCH] engine: voice: output_buffer renamed to compress_buffer --- engine/client/voice.c | 6 +++--- engine/client/voice.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/client/voice.c b/engine/client/voice.c index fb2bfdbe..2ca3e597 100644 --- a/engine/client/voice.c +++ b/engine/client/voice.c @@ -521,8 +521,8 @@ void CL_AddVoiceToDatagram( void ) if( cls.state != ca_active || !Voice_IsRecording() || !voice.encoder ) return; - - size = Voice_GetOpusCompressedData( voice.output_buffer, sizeof( voice.output_buffer ), &frames ); + + size = Voice_GetOpusCompressedData( voice.compress_buffer, sizeof( voice.compress_buffer ), &frames ); if( size > 0 && MSG_GetNumBytesLeft( &cls.datagram ) >= size + 32 ) { @@ -530,7 +530,7 @@ void CL_AddVoiceToDatagram( void ) MSG_WriteByte( &cls.datagram, voice_loopback.value != 0 ); MSG_WriteByte( &cls.datagram, frames ); MSG_WriteShort( &cls.datagram, size ); - MSG_WriteBytes( &cls.datagram, voice.output_buffer, size ); + MSG_WriteBytes( &cls.datagram, voice.compress_buffer, size ); } } diff --git a/engine/client/voice.h b/engine/client/voice.h index 41e0bb6e..88bcbd38 100644 --- a/engine/client/voice.h +++ b/engine/client/voice.h @@ -71,7 +71,7 @@ typedef struct voice_state_s // buffers byte input_buffer[MAX_RAW_SAMPLES]; - byte output_buffer[MAX_RAW_SAMPLES]; + byte compress_buffer[MAX_RAW_SAMPLES]; byte decompress_buffer[MAX_RAW_SAMPLES]; fs_offset_t input_buffer_pos; // in bytes