[Development] Patch to fix qt-multimedia compilation with ALSA
shengfeng zhou
sxzzsf at gmail.com
Thu Apr 6 14:16:34 CEST 2023
/var/tmp/build/qt6-6.5.0/qtmultimedia/src/multimedia/alsa/qalsaaudiosink_p.h:98:22:
error: expected ';' at end of member declaration
98 | snd_pcm_access_t access SND_PCM_ACCESS_RW_INTERLEAVED;
| ^~~~~~
| ;
/var/tmp/build/qt6-6.5.0/qtmultimedia/src/multimedia/alsa/qalsaaudiosink_p.h:98:29:
error: 'SND_PCM_ACCESS_RW_INTERLEAVED' does not name a type
--- qt6-6.5.0/qtmultimedia/src/multimedia/alsa/qalsaaudiosink_p.h.orig
2023-04-06 19:16:52.046179861 +0800
+++ qt6-6.5.0/qtmultimedia/src/multimedia/alsa/qalsaaudiosink_p.h
2023-04-06 19:29:43.279593508 +0800
@@ -95,8 +95,8 @@
qint64 elapsedTimeOffset = 0;
char* audioBuffer = nullptr;
snd_pcm_t* handle = nullptr;
- snd_pcm_access_t access SND_PCM_ACCESS_RW_INTERLEAVED;
- snd_pcm_format_t pcmformat SND_PCM_FORMAT_S16;
+ snd_pcm_access_t access = SND_PCM_ACCESS_RW_INTERLEAVED;
+ snd_pcm_format_t pcmformat = SND_PCM_FORMAT_S16;
snd_pcm_hw_params_t *hwparams = nullptr;
qreal m_volume = 1.0f;
};
More information about the Development
mailing list