1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-17 23:28:50 -05:00
This commit is contained in:
Hexameron 2014-05-20 18:35:57 +01:00
parent 82047f69ce
commit c813639df7
2 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,7 @@ find_package(FFTW3F)
##############################################################################
#include(${QT_USE_FILE})
set( QT_DEFINITIONS "${QT_DEFINITIONS} -DQT_NO_DEBUG_OUTPUT" )
add_definitions(${QT_DEFINITIONS})
if(MSVC)

View File

@ -49,7 +49,7 @@ bool AudioOutput::start(int device, int rate)
QAudioFormat format;
QAudioDeviceInfo devInfo(QAudioDeviceInfo::defaultOutputDevice());
format.setSampleRate(41000);
format.setSampleRate(48000);
format.setChannelCount(2);
format.setSampleSize(16);
format.setCodec("audio/pcm");
@ -57,12 +57,12 @@ bool AudioOutput::start(int device, int rate)
format.setSampleType(QAudioFormat::SignedInt);
if(!devInfo.isFormatSupported(format)) {
qDebug("default format not supported - try to use nearest");
qWarning("48kHz S16_LE audio format not supported");
format = devInfo.nearestFormat(format);
}
if(format.sampleSize() != 16) {
qDebug("audio device doesn't support 16 bit samples (%s)", qPrintable(devInfo.defaultOutputDevice().deviceName()));
qWarning("Audio device ( %s ) failed", qPrintable(devInfo.defaultOutputDevice().deviceName()));
return false;
}