Fixes Various Audio Issues. (#185)

* perf graph overlay/checkbox added

* added toggle Chaperone action

* toggle chaperone non-functional

* fixed chaperone toggle action const to once

* Added Proximity Sensor Action back-end, not implemented via logic Until fixed by valve

* added default WMR controller profile

* formated

* formated steamvrtabcontroller.h

* fixed un-intended change

* fixed audio profile Bug w/ changed devices

* fixed name being used as param instead of ID

* fixed loop logic in saveAudioProfile

* audio profile fix WIP defaults OVR integration

* fixed profile Saves, delete logic and mirror logic needed

* fixed QML format, added TODO message

* Fixed Audio Profile Behavior

* fixed qml reference error

* audiodeviceselector changed qml

* Removed some comments
This commit is contained in:
ykeara
2019-05-02 11:29:49 -05:00
committed by GitHub
parent ef67888405
commit 84d5be7771
6 changed files with 262 additions and 56 deletions
+12
View File
@@ -18,6 +18,9 @@ struct AudioProfile
std::string playbackName;
std::string mirrorName;
std::string micName;
std::string recordingID;
std::string playbackID;
std::string mirrorID;
float mirrorVol = 0.0;
float micVol = 0.0;
bool micMute = false;
@@ -103,6 +106,14 @@ private:
void removeOtherDefaultProfiles( QString name );
std::string getPlaybackDeviceID( int index );
std::string getMirrorDeviceID( int index );
std::string getRecordingDeviceID( int index );
void setDefaultPlayback( int index, bool notify = true );
void setDefaultMirror( int index, bool notify = true );
void setDefaultMic( int index, bool notify = true );
std::vector<AudioProfile> audioProfiles;
public:
@@ -147,6 +158,7 @@ public:
void onNewPlaybackDevice();
void onNewMirrorDevice();
void onDeviceStateChanged();
void shutdown();
public slots:
void setMirrorVolume( float value, bool notify = true );