Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMultimediaPrivate::QPlatformAudioIOStream Class Reference

#include <qaudiosystem_platform_stream_support_p.h>

Inheritance diagram for QtMultimediaPrivate::QPlatformAudioIOStream:
Collaboration diagram for QtMultimediaPrivate::QPlatformAudioIOStream:

Public Types

enum class  ShutdownPolicy : uint8_t { DrainRingbuffer , DiscardRingbuffer }

Static Public Member Functions

static qsizetype inferRingbufferFrames (const std::optional< int > &ringbufferSize, const std::optional< int32_t > &hardwareBufferFrames, const QAudioFormat &)
static qsizetype inferRingbufferBytes (const std::optional< int > &ringbufferSize, const std::optional< int32_t > &hardwareBufferFrames, const QAudioFormat &)

Protected Types

using NativeSampleFormat = QAudioHelperInternal::NativeSampleFormat
using QAutoResetEvent = QtPrivate::QAutoResetEvent

Protected Member Functions

 QPlatformAudioIOStream (QAudioDevice m_audioDevice, QAudioFormat m_format, std::optional< int > ringbufferSize, std::optional< int32_t > hardwareBufferFrames, float volume)
 ~QPlatformAudioIOStream ()
void setVolume (float)
float volume () const
template<typename Functor>
auto visitRingbuffer (Functor &&f)
template<typename Functor>
auto visitRingbuffer (Functor &&f) const
void prepareRingbuffer (std::optional< int > ringbufferSize)
int ringbufferSizeInBytes ()
void requestStop ()
bool isStopRequested (std::memory_order memory_order=std::memory_order_relaxed) const

Protected Attributes

const QAudioDevice m_audioDevice
const QAudioFormat m_format
const std::optional< int32_t > m_hardwareBufferFrames

Detailed Description

Definition at line 41 of file qaudiosystem_platform_stream_support_p.h.

Member Typedef Documentation

◆ NativeSampleFormat

◆ QAutoResetEvent

Member Enumeration Documentation

◆ ShutdownPolicy

Enumerator
DrainRingbuffer 
DiscardRingbuffer 

Definition at line 111 of file qaudiosystem_platform_stream_support_p.h.

Constructor & Destructor Documentation

◆ QPlatformAudioIOStream()

QtMultimediaPrivate::QPlatformAudioIOStream::QPlatformAudioIOStream ( QAudioDevice m_audioDevice,
QAudioFormat m_format,
std::optional< int > ringbufferSize,
std::optional< int32_t > hardwareBufferFrames,
float volume )
protected

Definition at line 29 of file qaudiosystem_platform_stream_support.cpp.

References QPlatformAudioIOStream().

Referenced by QPlatformAudioIOStream().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QPlatformAudioIOStream()

QtMultimediaPrivate::QPlatformAudioIOStream::~QPlatformAudioIOStream ( )
protected

Definition at line 49 of file qaudiosystem_platform_stream_support.cpp.

Member Function Documentation

◆ inferRingbufferBytes()

qsizetype QtMultimediaPrivate::QPlatformAudioIOStream::inferRingbufferBytes ( const std::optional< int > & ringbufferSize,
const std::optional< int32_t > & hardwareBufferFrames,
const QAudioFormat & format )
static

Definition at line 104 of file qaudiosystem_platform_stream_support.cpp.

◆ inferRingbufferFrames()

qsizetype QtMultimediaPrivate::QPlatformAudioIOStream::inferRingbufferFrames ( const std::optional< int > & ringbufferSize,
const std::optional< int32_t > & hardwareBufferFrames,
const QAudioFormat & format )
static

Definition at line 93 of file qaudiosystem_platform_stream_support.cpp.

◆ isStopRequested()

bool QtMultimediaPrivate::QPlatformAudioIOStream::isStopRequested ( std::memory_order memory_order = std::memory_order_relaxed) const
inlineprotected

Definition at line 87 of file qaudiosystem_platform_stream_support_p.h.

◆ prepareRingbuffer()

void QtMultimediaPrivate::QPlatformAudioIOStream::prepareRingbuffer ( std::optional< int > ringbufferSize)
protected

Definition at line 59 of file qaudiosystem_platform_stream_support.cpp.

◆ requestStop()

void QtMultimediaPrivate::QPlatformAudioIOStream::requestStop ( )
protected

Definition at line 87 of file qaudiosystem_platform_stream_support.cpp.

◆ ringbufferSizeInBytes()

int QtMultimediaPrivate::QPlatformAudioIOStream::ringbufferSizeInBytes ( )
protected

Definition at line 120 of file qaudiosystem_platform_stream_support.cpp.

◆ setVolume()

void QtMultimediaPrivate::QPlatformAudioIOStream::setVolume ( float volume)
protected

Definition at line 54 of file qaudiosystem_platform_stream_support.cpp.

◆ visitRingbuffer() [1/2]

template<typename Functor>
auto QtMultimediaPrivate::QPlatformAudioIOStream::visitRingbuffer ( Functor && f)
inlineprotected

Definition at line 71 of file qaudiosystem_platform_stream_support_p.h.

◆ visitRingbuffer() [2/2]

template<typename Functor>
auto QtMultimediaPrivate::QPlatformAudioIOStream::visitRingbuffer ( Functor && f) const
inlineprotected

Definition at line 77 of file qaudiosystem_platform_stream_support_p.h.

◆ volume()

float QtMultimediaPrivate::QPlatformAudioIOStream::volume ( ) const
inlineprotected

Definition at line 68 of file qaudiosystem_platform_stream_support_p.h.

Member Data Documentation

◆ m_audioDevice

const QAudioDevice QtMultimediaPrivate::QPlatformAudioIOStream::m_audioDevice
protected

Definition at line 93 of file qaudiosystem_platform_stream_support_p.h.

◆ m_format

const QAudioFormat QtMultimediaPrivate::QPlatformAudioIOStream::m_format
protected

Definition at line 94 of file qaudiosystem_platform_stream_support_p.h.

◆ m_hardwareBufferFrames

const std::optional<int32_t> QtMultimediaPrivate::QPlatformAudioIOStream::m_hardwareBufferFrames
protected

Definition at line 95 of file qaudiosystem_platform_stream_support_p.h.


The documentation for this class was generated from the following files: