MCPcopy 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

audioDeviceMouseDownFunction · 0.85
getCurrentDeviceNameFunction · 0.85

Calls 2

getDeviceIndexFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected