27 Q_PROPERTY(QByteArray id READ id CONSTANT)
28 Q_PROPERTY(QString description READ description CONSTANT)
29 Q_PROPERTY(
bool isDefault READ isDefault CONSTANT)
30 Q_PROPERTY(Mode mode READ mode CONSTANT)
40 QAudioDevice(
const QAudioDevice& other);
43 QAudioDevice(QAudioDevice &&other)
noexcept =
default;
44 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QAudioDevice)
45 void swap(QAudioDevice &other)
noexcept
48 QAudioDevice& operator=(
const QAudioDevice& other);
50 bool operator==(
const QAudioDevice &other)
const;
51 bool operator!=(
const QAudioDevice &other)
const;
55 QByteArray id()
const;
56 QString description()
const;
58 bool isDefault()
const;
59 QAudioDevice::Mode mode()
const;
61 bool isFormatSupported(
const QAudioFormat &format)
const;
62 QAudioFormat preferredFormat()
const;
64 int minimumSampleRate()
const;
65 int maximumSampleRate()
const;
66 int minimumChannelCount()
const;
67 int maximumChannelCount()
const;
68 QList<QAudioFormat::SampleFormat> supportedSampleFormats()
const;
69 QAudioFormat::ChannelConfig channelConfiguration()
const;
71#if QT_DEPRECATED_SINCE(6
, 10
)
72 QT_DEPRECATED_VERSION_X_6_10(
"The method is internal and deprecated")
73 const QAudioDevicePrivate *handle()
const {
return d.get(); }
76 friend class QAudioDevicePrivate;
77 explicit QAudioDevice(QAudioDevicePrivate *p);
78 QExplicitlySharedDataPointer<QAudioDevicePrivate> d;