Skip to content

Commit

Permalink
Always enumerate devices on open.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 24, 2024
1 parent d3875f3 commit 055b710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions alc/backends/coreaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void CoreAudioPlayback::open(const char *name)
&audioDevice);
else
{
if(PlaybackList.empty())
//if(PlaybackList.empty())
EnumerateDevices(PlaybackList, false);

auto find_name = [name](const DeviceEntry &entry) -> bool
Expand Down Expand Up @@ -599,7 +599,7 @@ void CoreAudioCapture::open(const char *name)
&audioDevice);
else
{
if(CaptureList.empty())
//if(CaptureList.empty())
EnumerateDevices(CaptureList, true);

auto find_name = [name](const DeviceEntry &entry) -> bool
Expand Down
4 changes: 2 additions & 2 deletions alc/backends/wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ void WasapiPlayback::open(const char *name)

if(name)
{
if(PlaybackDevices.empty())
//if(PlaybackDevices.empty())
pushMessage(MsgType::EnumeratePlayback);
if(std::strncmp(name, DevNameHead, DevNameHeadLen) == 0)
{
Expand Down Expand Up @@ -1465,7 +1465,7 @@ void WasapiCapture::open(const char *name)

if(name)
{
if(CaptureDevices.empty())
//if(CaptureDevices.empty())
pushMessage(MsgType::EnumerateCapture);
if(std::strncmp(name, DevNameHead, DevNameHeadLen) == 0)
{
Expand Down

0 comments on commit 055b710

Please sign in to comment.