Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmacosaudiodatautils_p.h File Reference
#include <CoreAudio/AudioHardware.h>
#include "qaudiodevice.h"
#include "qdebug.h"
#include <optional>
#include <vector>
#include <algorithm>
+ Include dependency graph for qmacosaudiodatautils_p.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ getAudioData() [1/2]

template<typename T >
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().

+ Here is the call graph for this function:

◆ getAudioData() [2/2]

static bool getAudioData ( AudioObjectID  objectID,
const AudioObjectPropertyAddress &  address,
void dst,
UInt32  dstSize,
const char *  logName 
)
inlinestatic

Definition at line 55 of file qmacosaudiodatautils_p.h.

References printUnableToReadWarning().

Referenced by getAudioData(), and getAudioObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAudioObject()

template<typename T >
std::optional< T > getAudioObject ( AudioObjectID  objectID,
const AudioObjectPropertyAddress &  address,
const char *  logName 
)

Definition at line 98 of file qmacosaudiodatautils_p.h.

References getAudioData().

+ Here is the call graph for this function:

◆ makePropertyAddress()

static AudioObjectPropertyAddress makePropertyAddress ( AudioObjectPropertySelector  selector,
QAudioDevice::Mode  mode,
AudioObjectPropertyElement  element = kAudioObjectPropertyElementMaster 
)
inlinestatic

Definition at line 46 of file qmacosaudiodatautils_p.h.

References QAudioDevice::Input, and selector.

◆ printUnableToReadWarning()

template<typename... Args>
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().

+ Here is the caller graph for this function: