MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getAvailableDevices

Function getAvailableDevices

src/Audio/src/AudioEngine.cpp:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 std::vector<std::string> getAvailableDevices()
183 {
184 std::vector<std::string> result;
185 const ALCchar* devices = alcGetString(nullptr, ALC_ALL_DEVICES_SPECIFIER);
186 const char* ptr = devices;
187 do
188 {
189 result.push_back(std::string(ptr));
190 ptr += result.back().size() + 1;
191 } while (*ptr != '\0');
192 return result;
193 }
194
195 void initialize()
196 {

Callers 1

Audio.cppFile · 0.85

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected