HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
HephAudio::GaussianWindow Class Referencefinal

generates Gaussian window. More...

#include <GaussianWindow.h>

Inheritance diagram for HephAudio::GaussianWindow:
HephAudio::Window

Public Member Functions

 GaussianWindow ()
 
 GaussianWindow (size_t size)
 
 GaussianWindow (size_t size, double sigma)
 
double operator[] (size_t n) const override
 
void SetSize (size_t newSize) override
 
double GetSigma () const
 
void SetSigma (double sigma)
 
- Public Member Functions inherited from HephAudio::Window
virtual ~Window ()=default
 
Heph::DoubleBuffer GenerateBuffer () const
 
size_t GetSize () const
 

Additional Inherited Members

- Protected Member Functions inherited from HephAudio::Window
 Window ()
 
 Window (size_t size)
 
- Protected Attributes inherited from HephAudio::Window
size_t size
 

Detailed Description

generates Gaussian window.

Constructor & Destructor Documentation

◆ GaussianWindow() [1/3]

HephAudio::GaussianWindow::GaussianWindow ( )

creates a new instance and initializes it with default values.

◆ GaussianWindow() [2/3]

HephAudio::GaussianWindow::GaussianWindow ( size_t size)

creates a new instance and initializes it with the provided values.

Parameters
sizesize of the window

◆ GaussianWindow() [3/3]

HephAudio::GaussianWindow::GaussianWindow ( size_t size,
double sigma )

creates a new instance and initializes it with the provided values.

Parameters
sizesize of the window
sigmacontrols the window shape.

Member Function Documentation

◆ operator[]()

double HephAudio::GaussianWindow::operator[] ( size_t n) const
overridevirtual

calculates the sample at index n.

Implements HephAudio::Window.

◆ SetSize()

void HephAudio::GaussianWindow::SetSize ( size_t newSize)
overridevirtual

sets the size of the window.

Reimplemented from HephAudio::Window.

◆ GetSigma()

double HephAudio::GaussianWindow::GetSigma ( ) const

gets sigma.

◆ SetSigma()

void HephAudio::GaussianWindow::SetSigma ( double sigma)

sets sigma.