Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ getCurrentDevice
Function
getCurrentDevice
src/OpenLoco/src/Audio/Audio.cpp:294–298 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
292
}
293
294
size_t getCurrentDevice()
295
{
296
const auto& cfg = Config::get();
297
return getDeviceIndex(cfg.audio.device);
298
}
299
300
void setDevice(size_t index)
301
{
Callers
2
audioDeviceMouseDown
Function · 0.85
getCurrentDeviceName
Function · 0.85
Calls
2
getDeviceIndex
Function · 0.85
get
Function · 0.50
Tested by
no test coverage detected