MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:1621–1625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1619 {
1620 AudioDevice ad;
1621 if (ad)
1622 {
1623 std::wstring deviceId;
1624 if (args.size() > 0)
1625 {
1626 const std::wstring deviceName = args[0].toWString();
1627 AudioDeviceInfos infos = ad.findDevice(AudioDeviceInfo::OUTPUT, AudioDeviceInfo::ACTIVATED);
1628 for (const auto& i : infos) if (i.name == deviceName) deviceId = i.id;

Callers

nothing calls this directly

Calls 2

unlockMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected