mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: define CUSTOM_MODES and try to link with export that only exists when CUSTOM_MODES was defined in build-time
This commit is contained in:
@@ -14,7 +14,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <opus.h>
|
||||
#define CUSTOM_MODES 1 // required to correctly link with Opus Custom
|
||||
#include <opus_custom.h>
|
||||
#include "common.h"
|
||||
#include "client.h"
|
||||
@@ -47,8 +47,8 @@ Voice_CodecInfo_f
|
||||
*/
|
||||
static void Voice_CodecInfo_f( void )
|
||||
{
|
||||
int encoderComplexity;
|
||||
opus_int32 encoderBitrate;
|
||||
int encoderComplexity = 0;
|
||||
opus_int32 encoderBitrate = 0;
|
||||
|
||||
if( !voice.initialized )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user