* @brief Sets the selected sample format for the output device. */
| 936 | * @brief Sets the selected sample format for the output device. |
| 937 | */ |
| 938 | void IO::Drivers::Audio::setSelectedOutputSampleFormat(int index) |
| 939 | { |
| 940 | if (isOpen()) |
| 941 | return; |
| 942 | |
| 943 | if (index < 0 || index >= outputSampleFormats().size()) |
| 944 | index = 0; |
| 945 | |
| 946 | m_selectedOutputSampleFormat = index; |
| 947 | configureOutput(); |
| 948 | persistSettings(); |
| 949 | } |
| 950 | |
| 951 | /** |
| 952 | * @brief Sets the selected output channel configuration. |
no test coverage detected