Fix onPlaybackMirrorDevice logspam
This commit is contained in:
@@ -170,17 +170,18 @@ void AudioTabController::eventLoopTick()
|
|||||||
char mirrorDeviceId[1024];
|
char mirrorDeviceId[1024];
|
||||||
vr::VRSettings()->GetString(
|
vr::VRSettings()->GetString(
|
||||||
vr::k_pch_audio_Section,
|
vr::k_pch_audio_Section,
|
||||||
vr::k_pch_audio_OnPlaybackMirrorDevice_String,
|
k_pch_audio_OnPlaybackMirrorDevice_String_WORKAROUND,
|
||||||
mirrorDeviceId,
|
mirrorDeviceId,
|
||||||
1024,
|
1024,
|
||||||
&vrSettingsError );
|
&vrSettingsError );
|
||||||
if ( vrSettingsError != vr::VRSettingsError_None )
|
if ( vrSettingsError != vr::VRSettingsError_None )
|
||||||
{
|
{
|
||||||
LOG( WARNING ) << "Could not read \""
|
LOG( WARNING )
|
||||||
<< vr::k_pch_audio_OnPlaybackMirrorDevice_String
|
<< "Could not read \""
|
||||||
<< "\" setting: "
|
<< k_pch_audio_OnPlaybackMirrorDevice_String_WORKAROUND
|
||||||
<< vr::VRSettings()->GetSettingsErrorNameFromEnum(
|
<< "\" setting: "
|
||||||
vrSettingsError );
|
<< vr::VRSettings()->GetSettingsErrorNameFromEnum(
|
||||||
|
vrSettingsError );
|
||||||
}
|
}
|
||||||
if ( lastMirrorDevId.compare( mirrorDeviceId ) != 0 )
|
if ( lastMirrorDevId.compare( mirrorDeviceId ) != 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ class QQuickWindow;
|
|||||||
namespace advsettings
|
namespace advsettings
|
||||||
{
|
{
|
||||||
// forward declaration
|
// forward declaration
|
||||||
|
// the following key used to be "onPlaybackMirrorDevice" using a workaround:
|
||||||
|
static const char* const k_pch_audio_OnPlaybackMirrorDevice_String_WORKAROUND
|
||||||
|
= "playbackMirrorDevice";
|
||||||
class OverlayController;
|
class OverlayController;
|
||||||
|
|
||||||
struct AudioProfile
|
struct AudioProfile
|
||||||
|
|||||||
Reference in New Issue
Block a user