18#include <QtMultimedia/private/qaudiosystem_p.h>
19#include <QtMultimedia/private/qaudiodevice_p.h>
24#include <sys/asoundlib.h>
34 void operator()(snd_pcm_t *h) {
if (h) snd_pcm_close(h); }
std::optional< snd_pcm_channel_setup_t > pcmChannelSetup(const QByteArray &device, QAudioDevice::Mode mode)
std::optional< snd_pcm_channel_info_t > pcmChannelInfo(snd_pcm_t *handle, QAudioDevice::Mode mode)
std::unique_ptr< snd_pcm_t, HandleDeleter > HandleUniquePtr
std::optional< snd_pcm_channel_setup_t > pcmChannelSetup(snd_pcm_t *handle, QAudioDevice::Mode mode)
HandleUniquePtr openPcmDevice(const QByteArray &id, QAudioDevice::Mode mode)
std::optional< snd_pcm_channel_status_t > pcmChannelStatus(const QByteArray &device, QAudioDevice::Mode mode)
std::optional< snd_pcm_channel_info_t > pcmChannelInfo(const QByteArray &device, QAudioDevice::Mode mode)
std::optional< snd_pcm_channel_status_t > pcmChannelStatus(snd_pcm_t *handle, QAudioDevice::Mode mode)
snd_pcm_channel_params_t formatToChannelParams(const QAudioFormat &format, QAudioDevice::Mode mode, int fragmentSize)
void operator()(snd_pcm_t *h)