#include <AudioOutputBackend.h>
The BufferControl enum Used to adapt to different audio playback backend.
Usually you don't need this in application level development.
| Enumerator |
|---|
| User |
|
| Blocking |
|
| BytesCallback |
|
| CountCallback |
|
| PlayedCount |
|
| PlayedBytes |
|
| OffsetIndex |
|
| OffsetBytes |
|
| WritableBytes |
|
| QtAV::AudioOutputBackend::AudioOutputBackend |
( |
AudioOutput::DeviceFeatures |
f, |
|
|
QObject * |
parent |
|
) |
| |
| virtual QtAV::AudioOutputBackend::~AudioOutputBackend |
( |
| ) |
|
|
inlinevirtual |
| virtual BufferControl QtAV::AudioOutputBackend::bufferControl |
( |
| ) |
const |
|
pure virtual |
| virtual bool QtAV::AudioOutputBackend::clear |
( |
| ) |
|
|
inlinevirtual |
| virtual bool QtAV::AudioOutputBackend::close |
( |
| ) |
|
|
pure virtual |
| static QStringList QtAV::AudioOutputBackend::defaultPriority |
( |
| ) |
|
|
static |
| virtual bool QtAV::AudioOutputBackend::flush |
( |
| ) |
|
|
inlinevirtual |
| virtual bool QtAV::AudioOutputBackend::getMute |
( |
| ) |
const |
|
inlinevirtual |
| virtual int QtAV::AudioOutputBackend::getOffset |
( |
| ) |
|
|
inlinevirtual |
| virtual int QtAV::AudioOutputBackend::getOffsetByBytes |
( |
| ) |
|
|
inlinevirtual |
| virtual int QtAV::AudioOutputBackend::getPlayedBytes |
( |
| ) |
|
|
inlinevirtual |
getPlayedBytes reimplement this if bufferControl() is PlayedBytes.
- Returns
- the bytes played since last dequeue the buffer queue
| virtual int QtAV::AudioOutputBackend::getPlayedCount |
( |
| ) |
|
|
inlinevirtual |
| virtual qreal QtAV::AudioOutputBackend::getVolume |
( |
| ) |
const |
|
inlinevirtual |
| virtual int QtAV::AudioOutputBackend::getWritableBytes |
( |
| ) |
|
|
inlinevirtual |
| virtual bool QtAV::AudioOutputBackend::isSupported |
( |
const AudioFormat & |
format | ) |
const |
|
inlinevirtual |
| void QtAV::AudioOutputBackend::muteReported |
( |
bool |
value | ) |
|
|
signal |
| virtual QString QtAV::AudioOutputBackend::name |
( |
| ) |
const |
|
pure virtual |
next
- Parameters
-
| id | NULL to get the first id address |
- Returns
- address of id or NULL if not found/end
| virtual void QtAV::AudioOutputBackend::onCallback |
( |
| ) |
|
|
virtual |
| virtual bool QtAV::AudioOutputBackend::open |
( |
| ) |
|
|
pure virtual |
| virtual bool QtAV::AudioOutputBackend::play |
( |
| ) |
|
|
pure virtual |
preferredChannelLayout
- Returns
- the preferred channel layout. default is stereo
preferredSampleFormat
- Returns
- the preferred sample format. default is signed16 packed If the specified format is not supported, resample to preffered format
| virtual bool QtAV::AudioOutputBackend::setMute |
( |
bool |
value = true | ) |
|
|
inlinevirtual |
| virtual bool QtAV::AudioOutputBackend::setVolume |
( |
qreal |
value | ) |
|
|
inlinevirtual |
setVolume Set volume by backend api.
If backend can not set the given volume, or SetVolume feature is not set, software implemention will be used.
- Parameters
-
- Returns
- true if success
| AudioOutput::DeviceFeatures QtAV::AudioOutputBackend::supportedFeatures |
( |
| ) |
|
|
inline |
| void QtAV::AudioOutputBackend::volumeReported |
( |
qreal |
value | ) |
|
|
signal |
| virtual bool QtAV::AudioOutputBackend::write |
( |
const QByteArray & |
data | ) |
|
|
pure virtual |
| bool QtAV::AudioOutputBackend::available |
| int QtAV::AudioOutputBackend::buffer_count |
| int QtAV::AudioOutputBackend::buffer_size |
The documentation for this class was generated from the following file: