50 dbg.
nospace() <<
"QAudioFormat(" <<
54 audioFormat.
codec() <<
"," <<
73 if ((sf.mFormatFlags & kAudioFormatFlagIsSignedInteger) != 0)
75 else if ((sf.mFormatFlags & kAudioFormatFlagIsFloat) != 0)
84 AudioStreamBasicDescription sf;
86 sf.mFormatFlags = kAudioFormatFlagIsPacked;
88 sf.mFramesPerPacket = 1;
89 sf.mChannelsPerFrame = audioFormat.
channels();
91 sf.mBytesPerFrame = sf.mChannelsPerFrame * (sf.mBitsPerChannel / 8);
92 sf.mBytesPerPacket = sf.mFramesPerPacket * sf.mBytesPerFrame;
93 sf.mFormatID = kAudioFormatLinearPCM;
103 sf.mFormatFlags |= kAudioFormatFlagIsBigEndian;
110 m_bufferSize(bufferSize)
The QDebug class provides an output stream for debugging information.
#define QT_END_NAMESPACE
This macro expands to.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
QAudioFormat toQAudioFormat(AudioStreamBasicDescription const &sf)
#define QT_BEGIN_NAMESPACE
This macro expands to.
AudioStreamBasicDescription toAudioStreamBasicDescription(QAudioFormat const &audioFormat)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
QAudioRingBuffer(int bufferSize)