mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-05 06:58:40 +00:00
fix: mac no sound
This commit is contained in:
parent
ff7db18d5f
commit
c2a3aa106b
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue