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