![]() |
Qt 6.x
The Qt SDK
|
#include <CoreAudio/AudioHardware.h>
#include "qaudiodevice.h"
#include "qdebug.h"
#include <optional>
#include <vector>
#include <algorithm>
Go to the source code of this file.
Functions | |
template<typename... Args> | |
QT_BEGIN_NAMESPACE void | printUnableToReadWarning (const char *logName, AudioObjectID objectID, const AudioObjectPropertyAddress &address, Args &&...args) |
static AudioObjectPropertyAddress | makePropertyAddress (AudioObjectPropertySelector selector, QAudioDevice::Mode mode, AudioObjectPropertyElement element=kAudioObjectPropertyElementMaster) |
static bool | getAudioData (AudioObjectID objectID, const AudioObjectPropertyAddress &address, void *dst, UInt32 dstSize, const char *logName) |
template<typename T > | |
std::optional< std::vector< T > > | getAudioData (AudioObjectID objectID, const AudioObjectPropertyAddress &address, const char *logName, size_t minDataSize=0) |
template<typename T > | |
std::optional< T > | getAudioObject (AudioObjectID objectID, const AudioObjectPropertyAddress &address, const char *logName) |
std::optional< std::vector< T > > getAudioData | ( | AudioObjectID | objectID, |
const AudioObjectPropertyAddress & | address, | ||
const char * | logName, | ||
size_t | minDataSize = 0 |
||
) |
Definition at line 73 of file qmacosaudiodatautils_p.h.
References getAudioData(), and printUnableToReadWarning().
|
inlinestatic |
Definition at line 55 of file qmacosaudiodatautils_p.h.
References printUnableToReadWarning().
Referenced by getAudioData(), and getAudioObject().
std::optional< T > getAudioObject | ( | AudioObjectID | objectID, |
const AudioObjectPropertyAddress & | address, | ||
const char * | logName | ||
) |
Definition at line 98 of file qmacosaudiodatautils_p.h.
References getAudioData().
|
inlinestatic |
Definition at line 46 of file qmacosaudiodatautils_p.h.
References QAudioDevice::Input, and selector.
QT_BEGIN_NAMESPACE void printUnableToReadWarning | ( | const char * | logName, |
AudioObjectID | objectID, | ||
const AudioObjectPropertyAddress & | address, | ||
Args &&... | args | ||
) |
Definition at line 30 of file qmacosaudiodatautils_p.h.
References args, and qWarning.
Referenced by getAudioData(), and getAudioData().