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::HannPoissonWindow Class Referencefinal

generates Hann-Poisson window. More...

#include <HannPoissonWindow.h>

Inheritance diagram for HephAudio::HannPoissonWindow:
HephAudio::Window

Public Member Functions

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

Public Attributes

double alpha
 

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 Hann-Poisson window.

Constructor & Destructor Documentation

◆ HannPoissonWindow() [1/3]

HephAudio::HannPoissonWindow::HannPoissonWindow ( )

creates a new instance and initializes it with default values.

◆ HannPoissonWindow() [2/3]

HephAudio::HannPoissonWindow::HannPoissonWindow ( size_t size)

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

Parameters
sizesize of the window

◆ HannPoissonWindow() [3/3]

HephAudio::HannPoissonWindow::HannPoissonWindow ( size_t size,
double alpha )

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

Parameters
sizesize of the window
alphacontrols the window shape.

Member Function Documentation

◆ operator[]()

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

calculates the sample at index n.

Implements HephAudio::Window.

◆ SetSize()

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

sets the size of the window.

Reimplemented from HephAudio::Window.

Member Data Documentation

◆ alpha

double HephAudio::HannPoissonWindow::alpha

controls the window shape.