Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
EntroPiGames's avatar
EntroPiGames
Explorer
7 years ago

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 

1 Reply

Replies have been turned off for this discussion
  • Hi @imperativity,

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