54 #ifndef QAUDIODEVICEINFOALSA_H 55 #define QAUDIODEVICEINFOALSA_H 57 #include <alsa/asoundlib.h> 59 #include <QtCore/qbytearray.h> 60 #include <QtCore/qstringlist.h> 61 #include <QtCore/qlist.h> 62 #include <QtCore/qdebug.h> 64 #include <QtMultimedia/qaudio.h> 65 #include <QtMultimedia/qaudiodeviceinfo.h> 66 #include <QtMultimedia/qaudioengine.h> 72 { 8000, 11025, 22050, 44100, 48000 };
101 #if (SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14) 102 void checkSurround();
static QByteArray defaultOutputDevice()
const unsigned int MAX_SAMPLE_RATES
#define QT_END_NAMESPACE
This macro expands to.
const unsigned int SAMPLE_RATES[]
The QByteArray class provides an array of bytes.
QString deviceName() const
Returns the audio device name.
The QString class provides a Unicode character string.
QList< QAudioFormat::SampleType > typez
~QAudioDeviceInfoInternal()
static QByteArray defaultInputDevice()
QAudioFormat preferredFormat() const
Returns the nearest settings.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
snd_pcm_hw_params_t * params
QList< int > channelsList()
Returns the list of currently available channels.
bool isFormatSupported(const QAudioFormat &format) const
Returns true if format is available from audio device.
QAudioDeviceInfoInternal(QByteArray dev, QAudio::Mode mode)
QStringList codecList()
Returns the list of currently available codecs.
QList< QAudioFormat::SampleType > sampleTypeList()
Returns the list of currently available sample types.
QAudioFormat nearestFormat(const QAudioFormat &format) const
Returns the nearest settings format.
QList< QAudioFormat::Endian > byteOrderz
QList< QAudioFormat::Endian > byteOrderList()
Returns the list of currently available byte orders.
QList< int > sampleSizeList()
Returns the list of currently available sample sizes.
The QAbstractAudioDeviceInfo class provides access for QAudioDeviceInfo to access the audio device pr...
QList< int > frequencyList()
Returns the list of currently available frequencies.
static QList< QByteArray > availableDevices(QAudio::Mode)
bool testSettings(const QAudioFormat &format) const