|
|
|
@ -105,7 +105,7 @@ void AudioOutput::startAudioOutput()
|
|
|
|
format.setSampleSize(16);
|
|
|
|
format.setSampleSize(16);
|
|
|
|
format.setCodec("audio/pcm");
|
|
|
|
format.setCodec("audio/pcm");
|
|
|
|
format.setByteOrder(QAudioFormat::LittleEndian);
|
|
|
|
format.setByteOrder(QAudioFormat::LittleEndian);
|
|
|
|
format.setSampleType(QAudioFormat::UnSignedInt);
|
|
|
|
format.setSampleType(QAudioFormat::SignedInt);
|
|
|
|
|
|
|
|
|
|
|
|
QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice());
|
|
|
|
QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice());
|
|
|
|
if (!info.isFormatSupported(format)) {
|
|
|
|
if (!info.isFormatSupported(format)) {
|
|
|
|
|