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

Method setSelectedOutputSampleFormat

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

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

Source from the content-addressed store, hash-verified

936 * @brief Sets the selected sample format for the output device.
937 */
938void 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.

Callers 1

setOutputSampleFormatMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected