* @brief Sets the selected sample format index for the input device. */
| 880 | * @brief Sets the selected sample format index for the input device. |
| 881 | */ |
| 882 | void IO::Drivers::Audio::setSelectedInputSampleFormat(int index) |
| 883 | { |
| 884 | if (isOpen()) |
| 885 | return; |
| 886 | |
| 887 | if (index < 0 || index >= inputSampleFormats().size()) |
| 888 | index = 0; |
| 889 | |
| 890 | m_selectedInputSampleFormat = index; |
| 891 | configureInput(); |
| 892 | persistSettings(); |
| 893 | } |
| 894 | |
| 895 | /** |
| 896 | * @brief Sets the selected channel configuration for the input device. |
no test coverage detected