OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
VideoWidget::SoundContext Struct Reference

Public Member Functions

 SoundContext (Context &ctx, SoundDevice &dev, uint16_t sampleRate, bool isMono)
 
 ~SoundContext ()
 
void play ()
 
uint64_t tickCount () const
 
void pushSamples (const std::vector< float > &s)
 

Public Attributes

Contextctx
 
Tempest::SoundEffect snd
 
std::mutex syncSamples
 
std::vector< float > samples
 
uint64_t processedSamples = 0
 
uint16_t sampleRate = 0
 
uint16_t numChannels = 0
 

Detailed Description

Definition at line 50 of file videowidget.cpp.

Constructor & Destructor Documentation

◆ SoundContext()

VideoWidget::SoundContext::SoundContext ( Context ctx,
SoundDevice &  dev,
uint16_t  sampleRate,
bool  isMono 
)
inline

Definition at line 51 of file videowidget.cpp.

◆ ~SoundContext()

VideoWidget::SoundContext::~SoundContext ( )
inline

Definition at line 56 of file videowidget.cpp.

Member Function Documentation

◆ play()

void VideoWidget::SoundContext::play ( )
inline

Definition at line 60 of file videowidget.cpp.

◆ pushSamples()

void VideoWidget::SoundContext::pushSamples ( const std::vector< float > &  s)
inline

Definition at line 69 of file videowidget.cpp.

◆ tickCount()

uint64_t VideoWidget::SoundContext::tickCount ( ) const
inline

Definition at line 64 of file videowidget.cpp.

Member Data Documentation

◆ ctx

Context& VideoWidget::SoundContext::ctx

Definition at line 76 of file videowidget.cpp.

◆ numChannels

uint16_t VideoWidget::SoundContext::numChannels = 0

Definition at line 83 of file videowidget.cpp.

◆ processedSamples

uint64_t VideoWidget::SoundContext::processedSamples = 0

Definition at line 81 of file videowidget.cpp.

◆ sampleRate

uint16_t VideoWidget::SoundContext::sampleRate = 0

Definition at line 82 of file videowidget.cpp.

◆ samples

std::vector<float> VideoWidget::SoundContext::samples

Definition at line 79 of file videowidget.cpp.

◆ snd

Tempest::SoundEffect VideoWidget::SoundContext::snd

Definition at line 77 of file videowidget.cpp.

◆ syncSamples

std::mutex VideoWidget::SoundContext::syncSamples

Definition at line 78 of file videowidget.cpp.


The documentation for this struct was generated from the following file: