mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 21:55:25 +02:00
Merge branch 'audio-mixer-volume-control' into addNewAudioControls
This commit is contained in:
commit
e44cdb0d7b
4 changed files with 25 additions and 17 deletions
interface/resources/qml/hifi/audio
libraries/audio-client/src
|
@ -345,7 +345,6 @@ Rectangle {
|
|||
color: hifi.colors.white;
|
||||
text: qsTr("Choose input device");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListView {
|
||||
|
@ -394,6 +393,7 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
AudioControls.LoopbackAudio {
|
||||
id: loopbackAudio
|
||||
x: margins.paddings
|
||||
|
@ -438,6 +438,14 @@ Rectangle {
|
|||
color: hifi.colors.white;
|
||||
text: qsTr("Choose output device");
|
||||
}
|
||||
|
||||
AudioControls.PlaySampleSound {
|
||||
x: margins.paddings
|
||||
|
||||
visible: (bar.currentIndex === 1 && isVR) ||
|
||||
(bar.currentIndex === 0 && !isVR);
|
||||
anchors { right: parent.right }
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
|
|
|
@ -60,11 +60,11 @@ RowLayout {
|
|||
}
|
||||
}
|
||||
|
||||
RalewayRegular {
|
||||
Layout.leftMargin: 2;
|
||||
size: 14;
|
||||
color: "white";
|
||||
font.italic: true
|
||||
text: audioLoopedBack ? qsTr("Speak in your input") : "";
|
||||
}
|
||||
// RalewayRegular {
|
||||
// Layout.leftMargin: 2;
|
||||
// size: 14;
|
||||
// color: "white";
|
||||
// font.italic: true
|
||||
// text: audioLoopedBack ? qsTr("Speak in your input") : "";
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -64,11 +64,11 @@ RowLayout {
|
|||
height: 32;
|
||||
}
|
||||
|
||||
RalewayRegular {
|
||||
Layout.leftMargin: 2;
|
||||
size: 14;
|
||||
color: "white";
|
||||
font.italic: true
|
||||
text: isPlaying ? qsTr("Listen to your output") : "";
|
||||
}
|
||||
// RalewayRegular {
|
||||
// Layout.leftMargin: 2;
|
||||
// size: 14;
|
||||
// color: "white";
|
||||
// font.italic: true
|
||||
// text: isPlaying ? qsTr("Listen to your output") : "";
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -1368,9 +1368,9 @@ bool AudioClient::mixLocalAudioInjectors(float* mixBuffer) {
|
|||
memset(_localScratchBuffer, 0, bytesToRead);
|
||||
if (0 < injectorBuffer->readData((char*)_localScratchBuffer, bytesToRead)) {
|
||||
|
||||
bool isSystemSound = !injector->isPositionSet() && !injector->isAmbisonic();
|
||||
bool isSystemSound = !options.positionSet && !options.ambisonic;
|
||||
|
||||
float gain = injector->getVolume() * (isSystemSound ? _systemInjectorGain : _localInjectorGain);
|
||||
float gain = options.volume * (isSystemSound ? _systemInjectorGain : _localInjectorGain);
|
||||
|
||||
if (options.ambisonic) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue