8#include <private/qplatformmediaintegration_p.h>
26 int size = caps.size();
27 for (
int i = 0;
i <
size; ++
i) {
29 if (
c.name() ==
"audio/x-raw") {
30 auto rate =
c[
"rate"].toIntRange();
35 auto channels =
c[
"channels"].toIntRange();
63 auto deviceInfo = std::make_unique<QGStreamerCustomAudioDeviceInfo>(gstreamerPipeline,
66 return deviceInfo.release()->create();
71 auto deviceInfo = std::make_unique<QGStreamerCustomAudioDeviceInfo>(gstreamerPipeline,
74 return deviceInfo.release()->create();
IOBluetoothDevice * device
QAudioFormat preferredFormat
QList< QAudioFormat::SampleFormat > supportedSampleFormats
The QAudioDevice class provides an information about audio devices and their functionality.
Mode
Describes the mode of this device.
QGstDeviceHandle gstDevice
QGStreamerAudioDeviceInfo(GstDevice *gstDevice, const QByteArray &device, QAudioDevice::Mode mode)
QGStreamerCustomAudioDeviceInfo(const QByteArray &gstreamerPipeline, QAudioDevice::Mode mode)
T value(qsizetype i) const
Combined button and popup list for selecting options.
QAudioDevice qMakeCustomGStreamerAudioInput(const QByteArray &gstreamerPipeline)
QAudioDevice qMakeCustomGStreamerAudioOutput(const QByteArray &gstreamerPipeline)
constexpr const T & qBound(const T &min, const T &val, const T &max)
GLenum GLuint GLintptr GLsizeiptr size
[1]
Type get() const noexcept
bool contains(const AT &t) const noexcept