MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / selectDevice

Function selectDevice

TheForceEngine/TFE_Audio/audioSystem.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 void selectDevice(s32 id)
166 {
167 if (id < 0)
168 {
169 id = TFE_AudioDevice::getDefaultOutputDevice();
170 }
171
172 if (id != TFE_AudioDevice::getOutputDeviceId() && id >= 0 && id < TFE_AudioDevice::getOutputDeviceCount())
173 {
174 shutdown();
175 init(false, id);
176 }
177 }
178
179 void setUpsampleFilter(AudioUpsampleFilter filter)
180 {

Callers 1

configSoundFunction · 0.85

Calls 5

getDefaultOutputDeviceFunction · 0.85
getOutputDeviceIdFunction · 0.85
getOutputDeviceCountFunction · 0.85
shutdownFunction · 0.70
initFunction · 0.70

Tested by

no test coverage detected