MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setSelectedInputSampleFormat

Method setSelectedInputSampleFormat

app/src/IO/Drivers/Audio.cpp:882–893  ·  view source on GitHub ↗

* @brief Sets the selected sample format index for the input device. */

Source from the content-addressed store, hash-verified

880 * @brief Sets the selected sample format index for the input device.
881 */
882void 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.

Callers 1

setInputSampleFormatMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected