constant expressios required, probably due to clang being more strict now
This commit is contained in:
+3
-2
@@ -1095,7 +1095,8 @@ void CVoice::BroadcastVoiceDataTorchlightCelt(IClient *pClient, int16_t *pPCM, i
|
|||||||
const int STEP = m_CeltEncoderSettings.SampleRate_Hz; // 22050
|
const int STEP = m_CeltEncoderSettings.SampleRate_Hz; // 22050
|
||||||
const int DIV = 24000;
|
const int DIV = 24000;
|
||||||
const int CELT_FRAME_SIZE = m_CeltEncoderSettings.FrameSize; // 512
|
const int CELT_FRAME_SIZE = m_CeltEncoderSettings.FrameSize; // 512
|
||||||
const int CELT_PACKET_SIZE = m_CeltEncoderSettings.PacketSize; // 64
|
//const int CELT_PACKET_SIZE = m_CeltEncoderSettings.PacketSize; // 64
|
||||||
|
constexpr int CELT_PACKET_SIZE = 64;
|
||||||
|
|
||||||
int fromSlot = pClient->GetPlayerSlot();
|
int fromSlot = pClient->GetPlayerSlot();
|
||||||
int maxClients = iserver->GetClientCount();
|
int maxClients = iserver->GetClientCount();
|
||||||
@@ -1239,7 +1240,7 @@ void CVoice::PushPlayerVoiceData(int playerSlot, int nBytes, char *data)
|
|||||||
4: 0x68 (TOC)
|
4: 0x68 (TOC)
|
||||||
*/
|
*/
|
||||||
//frame 1 always starts at offset 18.
|
//frame 1 always starts at offset 18.
|
||||||
int MaxFrames = 16;
|
constexpr int MaxFrames = 16;
|
||||||
int16_t pcmFrameBuffer[480 * MaxFrames];
|
int16_t pcmFrameBuffer[480 * MaxFrames];
|
||||||
int totalDecodedSamples = 0;
|
int totalDecodedSamples = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user