![]() |
Qt 6.x
The Qt SDK
|
#include <QFile>
#include <QTimer>
#include <QDebug>
#include <qobject.h>
#include <qfile.h>
#include "qaudiodevice.h"
#include "qaudiosource.h"
#include "qaudiooutput.h"
#include "qaudiodecoder.h"
#include "qmediaplayer.h"
#include "qmediadevices.h"
Go to the source code of this file.
Classes | |
class | AudioInputExample |
class | AudioOutputExample |
[Audio input state changed] More... | |
class | AudioDecodingExample |
Functions | |
void | AudioDeviceInfo () |
[Audio output state changed] | |
void | applyVolume (int volumeSliderValue) |
[Volume conversion] | |
Variables | |
QMediaPlayer | player |
void applyVolume | ( | int | volumeSliderValue | ) |
[Volume conversion]
Definition at line 208 of file audio.cpp.
References QAudio::convertVolume(), QAudio::LinearVolumeScale, QAudio::LogarithmicVolumeScale, player, and qRound().
void AudioDeviceInfo | ( | ) |
[Audio output state changed]
[Setting audio format]
[Setting audio format]
[Dumping audio formats]
[Dumping audio formats]
Definition at line 160 of file audio.cpp.
References QMediaDevices::audioOutputs, device, QAudioFormat::Int16, and qDebug.
QMediaPlayer player |
Definition at line 205 of file audio.cpp.
Referenced by QPlatformMediaPlayer::activeTracksChanged(), applyVolume(), QPlatformMediaPlayer::audioAvailableChanged(), AVFMediaPlayer::audioOutputChanged(), QPlatformMediaPlayer::bufferProgressChanged(), QAndroidIntegration::createPlayer(), QDarwinIntegration::createPlayer(), QFFmpegMediaIntegration::createPlayer(), QGstreamerIntegration::createPlayer(), QWasmMediaIntegration::createPlayer(), QPlatformMediaPlayer::durationChanged(), QPlatformMediaPlayer::metaDataChanged(), AndroidMediaPlayer::playbackRate(), QPlatformMediaPlayer::playbackRateChanged(), QPlatformMediaPlayer::positionChanged(), AVFMediaPlayer::processLoadStateChange(), QPlatformMediaPlayer::seekableChanged(), QPlatformMediaPlayer::setLoops(), AVFMediaPlayer::setMuted(), AVFMediaPlayer::setPlaybackRate(), AVFMediaPlayer::setVolume(), QPlatformMediaPlayer::tracksChanged(), QVideoSinkPrivate::unregisterSource(), and QPlatformMediaPlayer::videoAvailableChanged().