mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-05 22:47:56 +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
|
@ -345,7 +345,6 @@ Rectangle {
|
||||||
color: hifi.colors.white;
|
color: hifi.colors.white;
|
||||||
text: qsTr("Choose input device");
|
text: qsTr("Choose input device");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
|
@ -394,6 +393,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AudioControls.LoopbackAudio {
|
AudioControls.LoopbackAudio {
|
||||||
id: loopbackAudio
|
id: loopbackAudio
|
||||||
x: margins.paddings
|
x: margins.paddings
|
||||||
|
@ -438,6 +438,14 @@ Rectangle {
|
||||||
color: hifi.colors.white;
|
color: hifi.colors.white;
|
||||||
text: qsTr("Choose output device");
|
text: qsTr("Choose output device");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AudioControls.PlaySampleSound {
|
||||||
|
x: margins.paddings
|
||||||
|
|
||||||
|
visible: (bar.currentIndex === 1 && isVR) ||
|
||||||
|
(bar.currentIndex === 0 && !isVR);
|
||||||
|
anchors { right: parent.right }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
|
|
|
@ -60,11 +60,11 @@ RowLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RalewayRegular {
|
// RalewayRegular {
|
||||||
Layout.leftMargin: 2;
|
// Layout.leftMargin: 2;
|
||||||
size: 14;
|
// size: 14;
|
||||||
color: "white";
|
// color: "white";
|
||||||
font.italic: true
|
// font.italic: true
|
||||||
text: audioLoopedBack ? qsTr("Speak in your input") : "";
|
// text: audioLoopedBack ? qsTr("Speak in your input") : "";
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,11 +64,11 @@ RowLayout {
|
||||||
height: 32;
|
height: 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
RalewayRegular {
|
// RalewayRegular {
|
||||||
Layout.leftMargin: 2;
|
// Layout.leftMargin: 2;
|
||||||
size: 14;
|
// size: 14;
|
||||||
color: "white";
|
// color: "white";
|
||||||
font.italic: true
|
// font.italic: true
|
||||||
text: isPlaying ? qsTr("Listen to your output") : "";
|
// text: isPlaying ? qsTr("Listen to your output") : "";
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
|
@ -1368,9 +1368,9 @@ bool AudioClient::mixLocalAudioInjectors(float* mixBuffer) {
|
||||||
memset(_localScratchBuffer, 0, bytesToRead);
|
memset(_localScratchBuffer, 0, bytesToRead);
|
||||||
if (0 < injectorBuffer->readData((char*)_localScratchBuffer, 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) {
|
if (options.ambisonic) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue