Skip to content

Commit

Permalink
Compilation fix
Browse files Browse the repository at this point in the history
Signed-off-by:doe300 <[email protected]>
  • Loading branch information
doe300 committed Feb 19, 2016
1 parent c5c8c78 commit fb36d09
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/RTAudioWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,18 +244,11 @@ const std::vector<AudioHandler::AudioDevice>& RtAudioWrapper::getAudioDevices()
unsigned int availableAudioDevices = rtaudio.getDeviceCount();
for(unsigned int i = 0; i < availableAudioDevices; i++)
{
try
RtAudio::DeviceInfo deviceInfo = rtaudio.getDeviceInfo(i);
if(deviceInfo.probed)
{
RtAudio::DeviceInfo deviceInfo = rtaudio.getDeviceInfo(i);
if(deviceInfo.probed)
{
devices.push_back({deviceInfo.name, deviceInfo.outputChannels, deviceInfo.inputChannels,
deviceInfo.isDefaultOutput, deviceInfo.isDefaultInput, (unsigned int)deviceInfo.nativeFormats, deviceInfo.sampleRates});
}
}
catch(const RtError& error)
{
std::cerr << "RtAudio: error reading device info: " << error.what() << std::endl;
devices.push_back({deviceInfo.name, deviceInfo.outputChannels, deviceInfo.inputChannels,
deviceInfo.isDefaultOutput, deviceInfo.isDefaultInput, (unsigned int)deviceInfo.nativeFormats, deviceInfo.sampleRates});
}
}
}
Expand Down

0 comments on commit fb36d09

Please sign in to comment.