43 #include <QtMultimedia/qaudio.h> 44 #include <QtMultimedia/qaudiodeviceinfo.h> 45 #include <QtMultimedia/qaudioengine.h> 46 #include <QtMultimedia/qaudiooutput.h>
virtual qint64 elapsedUSecs() const =0
Returns the milliseconds since start() was called, including time in Idle and suspend states...
int notifyInterval() const
Returns the notify interval in milliseconds.
void setBufferSize(int bytes)
Sets the audio buffer size to value in bytes.
#define QT_END_NAMESPACE
This macro expands to.
qint64 elapsedUSecs() const
Returns the microseconds since start() was called, including time in Idle and Suspend states...
void stateChanged(QAudio::State)
This signal is emitted when the device state has changed.
virtual int periodSize() const =0
Returns the period size in bytes.
QAudio::Error error() const
Returns the error state.
void stop()
Stops the audio output, detaching from the system resource.
virtual void stop()=0
Stops the audio output.
int periodSize() const
Returns the period size in bytes.
void notify()
This signal is emitted when x ms of audio data has been processed the interval set by setNotifyInterv...
virtual QAudioFormat format() const =0
Returns the QAudioFormat being used.
virtual qint64 processedUSecs() const =0
Returns the amount of audio data processed since start() was called in milliseconds.
The QObject class is the base class of all Qt objects.
~QAudioOutput()
Destroys this audio output.
void suspend()
Stops processing audio data, preserving buffered audio data.
int bufferSize() const
Returns the audio buffer size in bytes.
virtual void setBufferSize(int value)=0
Sets the audio buffer size to value in bytes.
virtual QAudio::State state() const =0
Returns the state of audio processing.
virtual QAudio::Error error() const =0
Returns the error state.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
virtual void reset()=0
Drops all audio data in the buffers, resets buffers to zero.
The QAudioDeviceInfo class provides an interface to query audio devices and their functionality...
void resume()
Resumes processing audio data after a suspend().
QAudioFormat format() const
Returns the QAudioFormat being used.
virtual QIODevice * start(QIODevice *device)=0
Uses the device as the QIODevice to transfer data.
QAudio::State state() const
Returns the state of audio processing.
virtual int bufferSize() const =0
Returns the audio buffer size in bytes.
QAudioOutput(const QAudioFormat &format=QAudioFormat(), QObject *parent=0)
Construct a new audio output and attach it to parent.
void reset()
Drops all audio data in the buffers, resets buffers to zero.
virtual int notifyInterval() const =0
Returns the notify interval in milliseconds.
virtual int bytesFree() const =0
Returns the free space available in bytes in the audio buffer.
QObject * parent() const
Returns a pointer to the parent object.
virtual void setNotifyInterval(int milliSeconds)=0
Sets the interval for notify() signal to be emitted.
virtual void suspend()=0
Stops processing audio data, preserving buffered audio data.
virtual void resume()=0
Resumes processing audio data after a suspend()
QIODevice * start()
Returns a pointer to the QIODevice being used to handle the data transfer.
int bytesFree() const
Returns the free space available in bytes in the audio buffer.
qint64 processedUSecs() const
Returns the amount of audio data processed by the class since start() was called in microseconds...
The QIODevice class is the base interface class of all I/O devices in Qt.
static QAbstractAudioOutput * createDefaultOutputDevice(QAudioFormat const &format)
void setNotifyInterval(int milliSeconds)
Sets the interval for notify() signal to be emitted.
static QAbstractAudioOutput * createOutputDevice(QAudioDeviceInfo const &device, QAudioFormat const &format)