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

Function getAvailableDevices

src/SFML/Audio/PlaybackDevice.cpp:37–48  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

35{
36////////////////////////////////////////////////////////////
37std::vector<std::string> getAvailableDevices()
38{
39 const auto devices = priv::AudioDevice::getAvailableDevices();
40
41 std::vector<std::string> deviceNameList;
42 deviceNameList.reserve(devices.size());
43
44 for (const auto& device : devices)
45 deviceNameList.emplace_back(device.name);
46
47 return deviceNameList;
48}
49
50
51////////////////////////////////////////////////////////////

Callers 9

initializeMethod · 0.85
getAvailableDevicesMethod · 0.85
getDefaultDeviceMethod · 0.85
getDefaultDeviceFunction · 0.85
setDeviceFunction · 0.85
getSelectedDeviceIdMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected