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

Method getDefaultDevice

src/SFML/Audio/SoundRecorder.cpp:365–376  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

363
364////////////////////////////////////////////////////////////
365std::string SoundRecorder::getDefaultDevice()
366{
367 const auto devices = Impl::getAvailableDevices();
368
369 for (const auto& device : devices)
370 {
371 if (device.isDefault)
372 return device.name;
373 }
374
375 return "";
376}
377
378
379////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getAvailableDevicesFunction · 0.85

Tested by

no test coverage detected