Skip to content

Commit

Permalink
Fixing audio device not detected in Standalone (fix #1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
elieserdejesus committed Apr 29, 2020
1 parent 6eff2de commit 650d537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Common/audio/core/AudioDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,18 +292,18 @@ inline QString NullAudioDriver::getOutputChannelName(const unsigned int) const

inline QString NullAudioDriver::getAudioInputDeviceName(int index) const
{
return index == CurrentAudioDeviceSelection ? getAudioInputDeviceName(0) : "NullAudioInputDriver";
return index == CurrentAudioDeviceSelection ? getAudioInputDeviceName(0) : "";
}

inline QString NullAudioDriver::getAudioOutputDeviceName(int index) const
{
return index == CurrentAudioDeviceSelection ? getAudioOutputDeviceName(0) : "NullAudioOutputDriver";
return index == CurrentAudioDeviceSelection ? getAudioOutputDeviceName(0) : "";
}

inline QString NullAudioDriver::getAudioDeviceInfo(int index,unsigned& nIn, unsigned& nOut ) const
{
nIn = nOut = 1;
return index==0 ? "NullAudioInputDriver" : "NullAudioOutputDriver";
return index==0 ? "" : "";
}

inline int NullAudioDriver::getAudioInputDeviceIndex() const
Expand Down

0 comments on commit 650d537

Please sign in to comment.