mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: voice: allow using inputfromfile when microphone isn't connected
This commit is contained in:
parent
0b50678912
commit
8630ef2c67
@ -618,12 +618,14 @@ qboolean Voice_Init( const char *pszCodecName, int quality )
|
|||||||
// we can hear others players, so it's fine to fail now
|
// we can hear others players, so it's fine to fail now
|
||||||
voice.initialized = true;
|
voice.initialized = true;
|
||||||
|
|
||||||
if( !Voice_InitOpusEncoder( quality ) || !VoiceCapture_Init() )
|
if( !Voice_InitOpusEncoder( quality ))
|
||||||
{
|
{
|
||||||
Voice_ShutdownOpusEncoder();
|
|
||||||
Con_Printf( S_WARN "Other players will not be able to hear you.\n" );
|
Con_Printf( S_WARN "Other players will not be able to hear you.\n" );
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( !VoiceCapture_Init( ))
|
||||||
|
Con_Printf( S_WARN "No microphone is available.\n" );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user