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

Method setSelectedOutputDevice

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

* @brief Sets the selected output device by index. */

Source from the content-addressed store, hash-verified

916 * @brief Sets the selected output device by index.
917 */
918void IO::Drivers::Audio::setSelectedOutputDevice(int index)
919{
920 if (isOpen())
921 return;
922
923 if (index < 0 || index >= outputDeviceList().size())
924 index = 0;
925
926 m_selectedOutputDevice = index;
927 m_selectedOutputSampleFormat = -1;
928 m_selectedOutputChannelConfiguration = -1;
929
930 syncOutputParameters();
931 configureOutput();
932 persistSettings();
933}
934
935/**
936 * @brief Sets the selected sample format for the output device.

Callers 1

setOutputDeviceMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected