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

Method getAvailableDevices

src/SFML/Audio/SoundRecorder.cpp:350–361  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

348
349////////////////////////////////////////////////////////////
350std::vector<std::string> SoundRecorder::getAvailableDevices()
351{
352 // Convert the internal miniaudio device list into a name-only list
353 const auto devices = Impl::getAvailableDevices();
354 std::vector<std::string> deviceNameList;
355 deviceNameList.reserve(devices.size());
356
357 for (const auto& device : devices)
358 deviceNameList.emplace_back(device.name);
359
360 return deviceNameList;
361}
362
363
364////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getAvailableDevicesFunction · 0.85

Tested by

no test coverage detected