* @brief Returns a list of supported sample formats for the selected output device. */
| 799 | * @brief Returns a list of supported sample formats for the selected output device. |
| 800 | */ |
| 801 | QStringList IO::Drivers::Audio::outputSampleFormats() const |
| 802 | { |
| 803 | QStringList list; |
| 804 | if (!validateOutput()) |
| 805 | return list; |
| 806 | |
| 807 | const auto& device = m_outputCapabilities[m_selectedOutputDevice]; |
| 808 | for (ma_format format : device.supportedFormats) |
| 809 | if (m_sampleFormats.contains(format)) |
| 810 | list.append(m_sampleFormats.value(format)); |
| 811 | |
| 812 | return list; |
| 813 | } |
| 814 | |
| 815 | /** |
| 816 | * @brief Returns a list of supported output channel configurations. |
no test coverage detected