From 89f4db5857ea0c30c52510785f505a9217750db5 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 27 Jan 2021 19:31:13 +0100 Subject: Cleanup QAudioFormat and friends Reduce the amount of available formats, and always use host endianness. Return both sample rate and channel count as a range, not a list of values. Change-Id: I88389b49ace077764fb647f50834236448e55c0e Reviewed-by: Doris Verria Reviewed-by: Lars Knoll --- .../multimedia/audiodevices/audiodevicesbase.ui | 185 ++++++++------------- 1 file changed, 72 insertions(+), 113 deletions(-) (limited to 'examples/multimedia/audiodevices/audiodevicesbase.ui') diff --git a/examples/multimedia/audiodevices/audiodevicesbase.ui b/examples/multimedia/audiodevices/audiodevicesbase.ui index 5d5ef4835..9618a3d22 100644 --- a/examples/multimedia/audiodevices/audiodevicesbase.ui +++ b/examples/multimedia/audiodevices/audiodevicesbase.ui @@ -6,8 +6,8 @@ 0 0 - 679 - 598 + 646 + 528 @@ -31,8 +31,8 @@ 0 0 - 653 - 545 + 626 + 480 @@ -72,134 +72,72 @@ - 1 + 0 Test format - + Test - - - - - 0 - 0 - - - - QFrame::NoFrame - - - QFrame::Plain - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Nearest Settings</span></p></body></html> - - - Qt::RichText - - - Qt::AlignCenter - - - - - - - false - - - - + - - - - SampleType - - - - - - - Sample size (bits) - - - - - + + - Endianness + Channels - - + + false - - - - - + + false - - + + - Channels + Sample Format - - - - - - - - + + false - - - - - 0 - 0 - + + + + + + + Frequency (Hz) - - - @@ -225,19 +163,53 @@ p, li { white-space: pre-wrap; } - - + + + + + 0 + 0 + + + + QFrame::NoFrame + + + QFrame::Plain + - Frequency (Hz) + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Nearest Settings</span></p></body></html> + + + Qt::RichText + + + Qt::AlignCenter - - - - false + + + + Qt::Vertical - + + + 20 + 40 + + + + + + + + + @@ -280,7 +252,7 @@ p, li { white-space: pre-wrap; } false - 5 + 3 false @@ -296,15 +268,7 @@ p, li { white-space: pre-wrap; } - Frequency (Hz) - - - AlignCenter - - - - - Channels + Sample Format AlignCenter @@ -312,7 +276,7 @@ p, li { white-space: pre-wrap; } - Sample type + Frequency (Hz) AlignCenter @@ -320,17 +284,12 @@ p, li { white-space: pre-wrap; } - Sample size (bits) + Channels AlignCenter - - - Endianness - - -- cgit v1.2.3