QAbstractAudioOutput¶
The
QAbstractAudioOutput
class is a base class for audio backends. More…

Detailed Description¶
QAbstractAudioOutput
implements audio functionality forQAudioOutput
, i.e.,QAudioOutput
routes function calls toQAbstractAudioOutput
. For a description of the functionality that is implemented, see theQAudioOutput
class and function descriptions.See also
-
class
QAbstractAudioOutput
¶
-
PySide2.QtMultimedia.QAbstractAudioOutput.
bufferSize
()¶ - Return type
int
Returns the audio buffer size in bytes.
See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
bytesFree
()¶ - Return type
int
Returns the free space available in bytes in the audio buffer.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
category
()¶ - Return type
unicode
See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
elapsedUSecs
()¶ - Return type
qint64
Returns the milliseconds since
start()
was called, including time in Idle and suspend states.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
error
()¶ - Return type
Error
Returns the error state.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
errorChanged
(error)¶ - Parameters
error –
Error
-
PySide2.QtMultimedia.QAbstractAudioOutput.
format
()¶ - Return type
Returns the
QAudioFormat
being used.See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
notify
()¶
-
PySide2.QtMultimedia.QAbstractAudioOutput.
notifyInterval
()¶ - Return type
int
Returns the notify interval in milliseconds.
See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
periodSize
()¶ - Return type
int
Returns the period size in bytes.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
processedUSecs
()¶ - Return type
qint64
Returns the amount of audio data processed since
start()
was called in milliseconds.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
reset
()¶ Drops all audio data in the buffers, resets buffers to zero.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
setBufferSize
(value)¶ - Parameters
value –
int
Sets the audio buffer size to
value
in bytes.See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
setCategory
(arg__1)¶ - Parameters
arg__1 – unicode
See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
setFormat
(fmt)¶ - Parameters
fmt –
QAudioFormat
Set the
QAudioFormat
to use tofmt
. Setting the format is only allowable while inStoppedState
.See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
setNotifyInterval
(milliSeconds)¶ - Parameters
milliSeconds –
int
Sets the interval for
notify()
signal to be emitted. This is based on thems
of audio data processed not on actual real-time. The resolution of the timer is platform specific.See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
setVolume
(arg__1)¶ - Parameters
arg__1 –
qreal
Sets the volume. Where
volume
is between 0.0 and 1.0.See also
-
PySide2.QtMultimedia.QAbstractAudioOutput.
start
(device)¶ - Parameters
device –
QIODevice
Uses the
device
as theQIODevice
to transfer data.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
start
() - Return type
QIODevice
Returns a pointer to the
QIODevice
being used to handle the data transfer. ThisQIODevice
can be used to write() audio data directly.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
state
()¶ - Return type
State
Returns the state of audio processing.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
stateChanged
(state)¶ - Parameters
state –
State
-
PySide2.QtMultimedia.QAbstractAudioOutput.
stop
()¶ Stops the audio output.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
suspend
()¶ Stops processing audio data, preserving buffered audio data.
-
PySide2.QtMultimedia.QAbstractAudioOutput.
volume
()¶ - Return type
qreal
Returns the volume in the range 0.0 and 1.0.
See also