OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
VideoWidget::Sound Struct Reference
Inheritance diagram for VideoWidget::Sound:

Public Member Functions

 Sound (SoundContext &c, uint16_t sampleRate, bool isMono)
 
void renderSound (int16_t *out, size_t n) override
 

Public Attributes

SoundContextctx
 
size_t channels = 2
 

Detailed Description

Definition at line 40 of file videowidget.cpp.

Constructor & Destructor Documentation

◆ Sound()

VideoWidget::Sound::Sound ( SoundContext c,
uint16_t  sampleRate,
bool  isMono 
)
inline

Definition at line 41 of file videowidget.cpp.

Member Function Documentation

◆ renderSound()

void VideoWidget::Sound::renderSound ( int16_t *  out,
size_t  n 
)
override

Definition at line 86 of file videowidget.cpp.

Member Data Documentation

◆ channels

size_t VideoWidget::Sound::channels = 2

Definition at line 47 of file videowidget.cpp.

◆ ctx

SoundContext& VideoWidget::Sound::ctx

Definition at line 46 of file videowidget.cpp.


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