#include <AudioOutputBackend.h>
◆ BufferControl
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 | |
◆ AudioOutputBackend()
QtAV::AudioOutputBackend::AudioOutputBackend |
( |
AudioOutput::DeviceFeatures |
f, |
|
|
QObject * |
parent |
|
) |
| |
◆ ~AudioOutputBackend()
virtual QtAV::AudioOutputBackend::~AudioOutputBackend |
( |
| ) |
|
|
inlinevirtual |
◆ bufferControl()
virtual BufferControl QtAV::AudioOutputBackend::bufferControl |
( |
| ) |
const |
|
pure virtual |
◆ clear()
virtual bool QtAV::AudioOutputBackend::clear |
( |
| ) |
|
|
inlinevirtual |
◆ close()
virtual bool QtAV::AudioOutputBackend::close |
( |
| ) |
|
|
pure virtual |
◆ create() [1/2]
◆ create() [2/2]
◆ defaultPriority()
static QStringList QtAV::AudioOutputBackend::defaultPriority |
( |
| ) |
|
|
static |
◆ flush()
virtual bool QtAV::AudioOutputBackend::flush |
( |
| ) |
|
|
inlinevirtual |
◆ getMute()
virtual bool QtAV::AudioOutputBackend::getMute |
( |
| ) |
const |
|
inlinevirtual |
◆ getOffset()
virtual int QtAV::AudioOutputBackend::getOffset |
( |
| ) |
|
|
inlinevirtual |
◆ getOffsetByBytes()
virtual int QtAV::AudioOutputBackend::getOffsetByBytes |
( |
| ) |
|
|
inlinevirtual |
◆ getPlayedBytes()
virtual int QtAV::AudioOutputBackend::getPlayedBytes |
( |
| ) |
|
|
inlinevirtual |
getPlayedBytes reimplement this if bufferControl() is PlayedBytes.
- Returns
- the bytes played since last dequeue the buffer queue
◆ getPlayedCount()
virtual int QtAV::AudioOutputBackend::getPlayedCount |
( |
| ) |
|
|
inlinevirtual |
◆ getVolume()
virtual qreal QtAV::AudioOutputBackend::getVolume |
( |
| ) |
const |
|
inlinevirtual |
◆ getWritableBytes()
virtual int QtAV::AudioOutputBackend::getWritableBytes |
( |
| ) |
|
|
inlinevirtual |
◆ id()
◆ isSupported() [1/3]
virtual bool QtAV::AudioOutputBackend::isSupported |
( |
const AudioFormat & |
format | ) |
const |
|
inlinevirtual |
◆ isSupported() [2/3]
◆ isSupported() [3/3]
◆ muteReported
void QtAV::AudioOutputBackend::muteReported |
( |
bool |
value | ) |
|
|
signal |
◆ name() [1/2]
virtual QString QtAV::AudioOutputBackend::name |
( |
| ) |
const |
|
pure virtual |
◆ name() [2/2]
◆ next()
next
- Parameters
-
id | NULL to get the first id address |
- Returns
- address of id or NULL if not found/end
◆ onCallback()
virtual void QtAV::AudioOutputBackend::onCallback |
( |
| ) |
|
|
virtual |
◆ open()
virtual bool QtAV::AudioOutputBackend::open |
( |
| ) |
|
|
pure virtual |
◆ play()
virtual bool QtAV::AudioOutputBackend::play |
( |
| ) |
|
|
pure virtual |
◆ preferredChannelLayout()
preferredChannelLayout
- Returns
- the preferred channel layout. default is stereo
◆ preferredSampleFormat()
preferredSampleFormat
- Returns
- the preferred sample format. default is signed16 packed If the specified format is not supported, resample to preffered format
◆ Register()
◆ setMute()
virtual bool QtAV::AudioOutputBackend::setMute |
( |
bool |
value = true | ) |
|
|
inlinevirtual |
◆ setVolume()
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
◆ supportedFeatures()
AudioOutput::DeviceFeatures QtAV::AudioOutputBackend::supportedFeatures |
( |
| ) |
|
|
inline |
◆ volumeReported
void QtAV::AudioOutputBackend::volumeReported |
( |
qreal |
value | ) |
|
|
signal |
◆ write()
virtual bool QtAV::AudioOutputBackend::write |
( |
const QByteArray & |
data | ) |
|
|
pure virtual |
◆ audio
◆ available
bool QtAV::AudioOutputBackend::available |
◆ buffer_count
int QtAV::AudioOutputBackend::buffer_count |
◆ buffer_size
int QtAV::AudioOutputBackend::buffer_size |
◆ format
The documentation for this class was generated from the following file: