FQLab
A spectral audio sandbox
 
Loading...
Searching...
No Matches
FQLab.SineWaveStream Class Reference
Inheritance diagram for FQLab.SineWaveStream:
Inheritance graph
Collaboration diagram for FQLab.SineWaveStream:
Collaboration graph

Public Member Functions

 SineWaveStream (float frequency=440f, float sampleRate=44100f, int channels=1)
 
AudioFrame ReadFrame (int sampleCount)
 Request PCM samples from the file of given size.
 
void Dispose ()
 

Properties

AudioFormat Format [get]
 Stream metadata.
 
- Properties inherited from FQLab.IAudioStream

Private Attributes

double _phase = 0
 
readonly float _frequency
 
readonly float _sampleRate
 
readonly int _channels
 

Constructor & Destructor Documentation

◆ SineWaveStream()

FQLab.SineWaveStream.SineWaveStream ( float  frequency = 440f,
float  sampleRate = 44100f,
int  channels = 1 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ Dispose()

void FQLab.SineWaveStream.Dispose ( )
inline

◆ ReadFrame()

AudioFrame FQLab.SineWaveStream.ReadFrame ( int  size)
inline

Request PCM samples from the file of given size.

Parameters
sizeSize of request.
Returns
PCM samples.

Implements FQLab.IAudioStream.

Here is the call graph for this function:

Member Data Documentation

◆ _channels

readonly int FQLab.SineWaveStream._channels
private

◆ _frequency

readonly float FQLab.SineWaveStream._frequency
private

◆ _phase

double FQLab.SineWaveStream._phase = 0
private

◆ _sampleRate

readonly float FQLab.SineWaveStream._sampleRate
private

Property Documentation

◆ Format

AudioFormat FQLab.SineWaveStream.Format
get

Stream metadata.

Implements FQLab.IAudioStream.


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