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
HeaderFiles
Oscillators
SquareWaveOscillator.h
Go to the documentation of this file.
1
#pragma once
2
#include "
HephAudioShared.h
"
3
#include "
Oscillator.h
"
4
7
namespace
HephAudio
8
{
13
class
HEPH_API
SquareWaveOscillator
final :
public
Oscillator
14
{
15
public
:
17
SquareWaveOscillator
();
18
24
SquareWaveOscillator
(uint32_t sampleRate);
25
27
SquareWaveOscillator
(
double
peakAmplitude,
double
frequency, uint32_t sampleRate,
double
phase_rad);
28
29
double
operator[]
(
size_t
n)
const override
;
30
};
31
}
HephAudioShared.h
HEPH_API
#define HEPH_API
Definition
HephShared.h:132
Oscillator.h
HephAudio::Oscillator
base class for oscillators.
Definition
Oscillator.h:16
HephAudio::SquareWaveOscillator
generates square wave signals.
Definition
SquareWaveOscillator.h:14
HephAudio::SquareWaveOscillator::SquareWaveOscillator
SquareWaveOscillator(double peakAmplitude, double frequency, uint32_t sampleRate, double phase_rad)
HephAudio::SquareWaveOscillator::SquareWaveOscillator
SquareWaveOscillator(uint32_t sampleRate)
HephAudio::SquareWaveOscillator::operator[]
double operator[](size_t n) const override
HephAudio::SquareWaveOscillator::SquareWaveOscillator
SquareWaveOscillator()
Generated by
1.11.0