mirror of https://github.com/PCSX2/pcsx2.git
Qt: Add label next to audio buffer size
This commit is contained in:
parent
f67611cbe6
commit
3114332c89
|
@ -255,6 +255,7 @@ void AudioSettingsWidget::updateLatencyLabel()
|
||||||
|
|
||||||
//: Preserve the %1 variable, adapt the latter ms (and/or any possible spaces in between) to your language's ruleset.
|
//: Preserve the %1 variable, adapt the latter ms (and/or any possible spaces in between) to your language's ruleset.
|
||||||
m_ui.outputLatencyLabel->setText(minimal_output ? tr("N/A") : tr("%1 ms").arg(config_output_latency_ms));
|
m_ui.outputLatencyLabel->setText(minimal_output ? tr("N/A") : tr("%1 ms").arg(config_output_latency_ms));
|
||||||
|
m_ui.bufferMSLabel->setText(tr("%1 ms").arg(config_buffer_ms));
|
||||||
|
|
||||||
const u32 output_latency_ms = minimal_output ? AudioStream::GetMSForBufferSize(SPU2::SAMPLE_RATE, m_output_device_latency) : config_output_latency_ms;
|
const u32 output_latency_ms = minimal_output ? AudioStream::GetMSForBufferSize(SPU2::SAMPLE_RATE, m_output_device_latency) : config_output_latency_ms;
|
||||||
if (output_latency_ms > 0)
|
if (output_latency_ms > 0)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>523</width>
|
<width>523</width>
|
||||||
<height>478</height>
|
<height>504</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
@ -57,32 +57,43 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="5" column="1">
|
||||||
<widget class="QSlider" name="bufferMS">
|
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="1,0">
|
||||||
<property name="minimum">
|
<item>
|
||||||
<number>15</number>
|
<widget class="QSlider" name="bufferMS">
|
||||||
</property>
|
<property name="minimum">
|
||||||
<property name="maximum">
|
<number>15</number>
|
||||||
<number>500</number>
|
</property>
|
||||||
</property>
|
<property name="maximum">
|
||||||
<property name="singleStep">
|
<number>500</number>
|
||||||
<number>1</number>
|
</property>
|
||||||
</property>
|
<property name="singleStep">
|
||||||
<property name="pageStep">
|
<number>1</number>
|
||||||
<number>5</number>
|
</property>
|
||||||
</property>
|
<property name="pageStep">
|
||||||
<property name="value">
|
<number>5</number>
|
||||||
<number>50</number>
|
</property>
|
||||||
</property>
|
<property name="value">
|
||||||
<property name="orientation">
|
<number>50</number>
|
||||||
<enum>Qt::Orientation::Horizontal</enum>
|
</property>
|
||||||
</property>
|
<property name="orientation">
|
||||||
<property name="tickPosition">
|
<enum>Qt::Horizontal</enum>
|
||||||
<enum>QSlider::TickPosition::TicksBothSides</enum>
|
</property>
|
||||||
</property>
|
<property name="tickPosition">
|
||||||
<property name="tickInterval">
|
<enum>QSlider::TickPosition::TicksBothSides</enum>
|
||||||
<number>20</number>
|
</property>
|
||||||
</property>
|
<property name="tickInterval">
|
||||||
</widget>
|
<number>20</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="bufferMSLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>0 ms</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6" stretch="0,0">
|
<layout class="QHBoxLayout" name="horizontalLayout_6" stretch="0,0">
|
||||||
|
|
Loading…
Reference in New Issue