8#include "private/qalsaaudiosource_p.h"
9#include "private/qalsaaudiosink_p.h"
10#include "private/qalsaaudiodevice_p.h"
12#include <alsa/asoundlib.h>
29 char *
name, *descr, *io;
31 if(snd_device_name_hint(-1,
"pcm", &hints) < 0) {
32 qWarning() <<
"no alsa devices available";
44 name = snd_device_name_get_hint(*
n,
"NAME");
46 descr = snd_device_name_get_hint(*
n,
"DESC");
47 io = snd_device_name_get_hint(*
n,
"IOID");
49 if ((descr != NULL) && ((io == NULL) || (io ==
filter))) {
51 devices.append(infop->create());
52 if (strcmp(
name,
"default") == 0)
53 infop->isDefault =
true;
62 snd_device_name_free_hint(hints);
The QAudioDevice class provides an information about audio devices and their functionality.
Mode
Describes the mode of this device.
QByteArray id
\qmlproperty string QtMultimedia::audioDevice::id
QObject * parent() const
Returns a pointer to the parent object.
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent