61 #ifndef WAVE_FORMAT_44M08 62 #define WAVE_FORMAT_44M08 0x00000100 63 #define WAVE_FORMAT_44S08 0x00000200 64 #define WAVE_FORMAT_44M16 0x00000400 65 #define WAVE_FORMAT_44S16 0x00000800 66 #define WAVE_FORMAT_48M08 0x00001000 67 #define WAVE_FORMAT_48S08 0x00002000 68 #define WAVE_FORMAT_48M16 0x00004000 69 #define WAVE_FORMAT_48S16 0x00008000 70 #define WAVE_FORMAT_96M08 0x00010000 71 #define WAVE_FORMAT_96S08 0x00020000 72 #define WAVE_FORMAT_96M16 0x00040000 73 #define WAVE_FORMAT_96S16 0x00080000 188 if (!match) failed =
true;
275 unsigned long iNumDevs,i;
276 iNumDevs = waveOutGetNumDevs();
277 for(i=0;i<iNumDevs;i++) {
278 if(waveOutGetDevCaps(i, &woc,
sizeof(WAVEOUTCAPS))
279 == MMSYSERR_NOERROR) {
295 unsigned long iNumDevs,i;
296 iNumDevs = waveInGetNumDevs();
297 for(i=0;i<iNumDevs;i++) {
298 if(waveInGetDevCaps(i, &woc,
sizeof(WAVEINCAPS))
299 == MMSYSERR_NOERROR) {
322 if((fmt && WAVE_FORMAT_1M08)
323 || (fmt && WAVE_FORMAT_1S08)
324 || (fmt && WAVE_FORMAT_2M08)
325 || (fmt && WAVE_FORMAT_2S08)
326 || (fmt && WAVE_FORMAT_4M08)
327 || (fmt && WAVE_FORMAT_4S08)
337 if((fmt && WAVE_FORMAT_1M16)
338 || (fmt && WAVE_FORMAT_1S16)
339 || (fmt && WAVE_FORMAT_2M16)
340 || (fmt && WAVE_FORMAT_2S16)
341 || (fmt && WAVE_FORMAT_4M16)
342 || (fmt && WAVE_FORMAT_4S16)
352 if((fmt && WAVE_FORMAT_1M08)
353 || (fmt && WAVE_FORMAT_1S08)
354 || (fmt && WAVE_FORMAT_1M16)
355 || (fmt && WAVE_FORMAT_1S16)) {
358 if((fmt && WAVE_FORMAT_2M08)
359 || (fmt && WAVE_FORMAT_2S08)
360 || (fmt && WAVE_FORMAT_2M16)
361 || (fmt && WAVE_FORMAT_2S16)) {
364 if((fmt && WAVE_FORMAT_4M08)
365 || (fmt && WAVE_FORMAT_4S08)
366 || (fmt && WAVE_FORMAT_4M16)
367 || (fmt && WAVE_FORMAT_4S16)) {
411 unsigned long iNumDevs,i;
412 iNumDevs = waveOutGetNumDevs();
413 for(i=0;i<iNumDevs;i++) {
414 if(waveOutGetDevCaps(i, &woc,
sizeof(WAVEOUTCAPS))
415 == MMSYSERR_NOERROR) {
421 unsigned long iNumDevs,i;
422 iNumDevs = waveInGetNumDevs();
423 for(i=0;i<iNumDevs;i++) {
424 if(waveInGetDevCaps(i, &woc,
sizeof(WAVEINCAPS))
425 == MMSYSERR_NOERROR) {
431 if(devices.
count() > 0)
432 devices.
append(
"default");
static QByteArray defaultOutputDevice()
#define QT_END_NAMESPACE
This macro expands to.
#define WAVE_FORMAT_48S08
#define WAVE_FORMAT_96S16
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
The QByteArray class provides an array of bytes.
QString deviceName() const
Returns the audio device name.
static bool match(const uchar *found, const char *target, uint len)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
QList< QAudioFormat::SampleType > typez
~QAudioDeviceInfoInternal()
static QByteArray defaultInputDevice()
void append(const T &t)
Inserts value at the end of the list.
QAudioFormat preferredFormat() const
Returns the nearest settings.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void prepend(const T &t)
Inserts value at the beginning of the list.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
QList< int > channelsList()
Returns the list of currently available channels.
#define WAVE_FORMAT_96M16
bool isFormatSupported(const QAudioFormat &format) const
Returns true if format is available from audio device.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
void clear()
Removes all items from the list.
#define WAVE_FORMAT_48S16
#define WAVE_FORMAT_48M16
QAudioDeviceInfoInternal(QByteArray dev, QAudio::Mode mode)
const char * constData() const
Returns a pointer to the data stored in the byte array.
QStringList codecList()
Returns the list of currently available codecs.
QList< QAudioFormat::SampleType > sampleTypeList()
Returns the list of currently available sample types.
#define WAVE_FORMAT_96M08
int compare(const QString &s) const
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.
QList< int > frequencyList()
Returns the list of currently available frequencies.
#define WAVE_FORMAT_48M08
static QList< QByteArray > availableDevices(QAudio::Mode)
bool testSettings(const QAudioFormat &format) const
#define WAVE_FORMAT_96S08
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...