7#include "private/qplatformaudiodecoder_p.h"
9#include <private/qplatformmediaintegration_p.h>
10#include <private/qobject_p.h>
12#include <QtCore/qcoreevent.h>
13#include <QtCore/qmetaobject.h>
14#include <QtCore/qtimer.h>
15#include <QtCore/qurl.h>
16#include <QtCore/qdebug.h>
17#include <QtCore/qpointer.h>
46 decoder = maybeDecoder.value();
48 qWarning() <<
"Failed to initialize QAudioDecoder" << maybeDecoder.error();
93 return tr(
"QAudioDecoder not supported.");
239 return decoder ? decoder->
position() : -1;
249 return decoder ? decoder->
duration() : -1;
362#include "moc_qaudiodecoder.cpp"
IOBluetoothDevice * device
QString errorString() const
QAudioBuffer read() const
Read a buffer from the decoder, if one is available.
QAudioFormat audioFormat() const
Returns the audio format the decoder is set to.
void stop()
Stop decoding audio.
void start()
Starts decoding the audio resource.
bool isDecoding
true if the decoder is currently running and decoding audio data.
qint64 duration() const
Returns total duration (in milliseconds) of the audio stream or -1 if not available.
Error
Defines a media player error condition.
void setSource(const QUrl &fileName)
Sets the current audio file name to fileName.
void setAudioFormat(const QAudioFormat &format)
Set the desired audio format for decoded samples to format.
void setSourceDevice(QIODevice *device)
Sets the current audio QIODevice to device.
~QAudioDecoder()
Destroys the audio decoder object.
bool bufferAvailable
whether there is a decoded audio buffer available
QIODevice * sourceDevice() const
Returns the current source QIODevice, if one was set.
qint64 position() const
Returns position (in milliseconds) of the last buffer read from the decoder or -1 if no buffers have ...
bool isSupported() const
Returns true is audio decoding is supported on this platform.
QAudioDecoder(QObject *parent=nullptr)
Construct an QAudioDecoder instance with parent.
QString error
Returns a human readable description of the current error, or an empty string is there is no error.
QUrl source
the active filename being decoded by the decoder object.
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent