Skip to main content
Participant
April 27, 2018

Setting “Mirror VR Audio” from code

Hey,




I would like to be
able to toggle the Mirror VR Audio setting from code.



My
application allows users to output two different audio signals to
separate devices (ex. Rift headphones and speakers), so I would like
to be able to disable the Mirror VR audio setting while my
application is running, to avoid the sound from overlapping.


I’m using Unity
and I’ve checked the OVRPlugin script for a function to disable
this setting, but have only found a way to set the default audio
output and input devices.


In the SteamVR
implementation of my app I use the following code to disable audio
mirroring:


OpenVR.Settings.SetString(OpenVR.k_pch_audio_Section,
OpenVR.k_pch_audio_OnPlaybackMirrorDevice_String, string.Empty, ref
error);
Would be very useful to have something similar in
the Oculus Utilities.


Thanks for the
help 

    This topic has been closed for replies.

    1 reply

    Participant
    May 9, 2018
    Hi @imperativity,

    Any update on if this setting will be exposed in a future update?