Definition at line 71 of file qaudioinput_mac_p.cpp.
◆ QAudioBufferList() [1/3]
QtMultimediaInternal::QAudioBufferList::QAudioBufferList |
( |
AudioStreamBasicDescription const & |
streamFormat | ) |
|
|
inline |
Definition at line 74 of file qaudioinput_mac_p.cpp.
Referenced by QtMultimediaInternal::QAudioInputBuffer::QAudioInputBuffer().
78 const bool isInterleaved = (
sf.mFormatFlags & kAudioFormatFlagIsNonInterleaved) == 0;
79 const int numberOfBuffers = isInterleaved ? 1 :
sf.mChannelsPerFrame;
83 bfs =
reinterpret_cast<AudioBufferList*
>(
qMalloc(
sizeof(AudioBufferList) +
84 (
sizeof(AudioBuffer) * numberOfBuffers)));
86 bfs->mNumberBuffers = numberOfBuffers;
87 for (
int i = 0; i < numberOfBuffers; ++i) {
88 bfs->mBuffers[i].mNumberChannels = isInterleaved ? numberOfBuffers : 1;
89 bfs->mBuffers[i].mDataByteSize = 0;
90 bfs->mBuffers[i].mData = 0;
Q_CORE_EXPORT void * qMalloc(size_t size)
◆ QAudioBufferList() [2/3]
QtMultimediaInternal::QAudioBufferList::QAudioBufferList |
( |
AudioStreamBasicDescription const & |
streamFormat, |
|
|
char * |
buffer, |
|
|
int |
bufferSize |
|
) |
| |
|
inline |
Definition at line 94 of file qaudioinput_mac_p.cpp.
101 bfs =
reinterpret_cast<AudioBufferList*
>(
qMalloc(
sizeof(AudioBufferList) +
sizeof(AudioBuffer)));
103 bfs->mNumberBuffers = 1;
104 bfs->mBuffers[0].mNumberChannels = 1;
106 bfs->mBuffers[0].mData = buffer;
Q_CORE_EXPORT void * qMalloc(size_t size)
◆ QAudioBufferList() [3/3]
QtMultimediaInternal::QAudioBufferList::QAudioBufferList |
( |
AudioStreamBasicDescription const & |
streamFormat, |
|
|
int |
framesToBuffer |
|
) |
| |
|
inline |
Definition at line 109 of file qaudioinput_mac_p.cpp.
114 const bool isInterleaved = (
sf.mFormatFlags & kAudioFormatFlagIsNonInterleaved) == 0;
115 const int numberOfBuffers = isInterleaved ? 1 :
sf.mChannelsPerFrame;
117 dataSize = framesToBuffer *
sf.mBytesPerFrame;
119 bfs =
reinterpret_cast<AudioBufferList*
>(
qMalloc(
sizeof(AudioBufferList) +
120 (
sizeof(AudioBuffer) * numberOfBuffers)));
121 bfs->mNumberBuffers = numberOfBuffers;
122 for (
int i = 0; i < numberOfBuffers; ++i) {
123 bfs->mBuffers[i].mNumberChannels = isInterleaved ? numberOfBuffers : 1;
Q_CORE_EXPORT void * qMalloc(size_t size)
◆ ~QAudioBufferList()
QtMultimediaInternal::QAudioBufferList::~QAudioBufferList |
( |
| ) |
|
|
inline |
Definition at line 129 of file qaudioinput_mac_p.cpp.
132 for (UInt32 i = 0; i <
bfs->mNumberBuffers; ++i)
Q_CORE_EXPORT void qFree(void *ptr)
◆ audioBufferList()
AudioBufferList* QtMultimediaInternal::QAudioBufferList::audioBufferList |
( |
| ) |
const |
|
inline |
◆ bufferSize()
qint64 QtMultimediaInternal::QAudioBufferList::bufferSize |
( |
int |
buffer = 0 | ) |
const |
|
inline |
◆ data()
char* QtMultimediaInternal::QAudioBufferList::data |
( |
int |
buffer = 0 | ) |
const |
|
inline |
◆ frameCount()
int QtMultimediaInternal::QAudioBufferList::frameCount |
( |
int |
buffer = 0 | ) |
const |
|
inline |
◆ packetCount()
int QtMultimediaInternal::QAudioBufferList::packetCount |
( |
int |
buffer = 0 | ) |
const |
|
inline |
◆ packetSize()
int QtMultimediaInternal::QAudioBufferList::packetSize |
( |
| ) |
const |
|
inline |
◆ reset()
void QtMultimediaInternal::QAudioBufferList::reset |
( |
| ) |
|
|
inline |
◆ bfs
AudioBufferList* QtMultimediaInternal::QAudioBufferList::bfs |
|
private |
◆ dataSize
int QtMultimediaInternal::QAudioBufferList::dataSize |
|
private |
◆ owner
bool QtMultimediaInternal::QAudioBufferList::owner |
|
private |
◆ sf
AudioStreamBasicDescription QtMultimediaInternal::QAudioBufferList::sf |
|
private |
The documentation for this class was generated from the following file: