FQLab
A spectral audio sandbox
 
Loading...
Searching...
No Matches
FQLab.NAudioPlayer Class Reference

Wrapper around the NAudio WaveOutEvent. More...

Inheritance diagram for FQLab.NAudioPlayer:
Inheritance graph
Collaboration diagram for FQLab.NAudioPlayer:
Collaboration graph

Public Member Functions

void Initialize (IAudioStream audioStream)
 Sets up internal settings based on metadata of the stream.
 
void Play (AudioFrame audioFrame)
 Feeds samples from the frame to the player.
 
void Pause ()
 Pauses internal device.
 
void Resume ()
 Resumes internal device.
 
void Dispose ()
 Clean up after track has finished playing.
 

Private Attributes

NAudioBufferedProvider_sampleProvider
 
WaveOutEvent _outputDevice
 

Detailed Description

Wrapper around the NAudio WaveOutEvent.

Member Function Documentation

◆ Dispose()

void FQLab.NAudioPlayer.Dispose ( )
inline

Clean up after track has finished playing.

Here is the call graph for this function:

◆ Initialize()

void FQLab.NAudioPlayer.Initialize ( IAudioStream  audioStream)
inline

Sets up internal settings based on metadata of the stream.

Parameters
audioStreamInitialized audio stream instance.

Implements FQLab.IAudioPlayer.

◆ Pause()

void FQLab.NAudioPlayer.Pause ( )
inline

Pauses internal device.

Implements FQLab.IAudioPlayer.

◆ Play()

void FQLab.NAudioPlayer.Play ( AudioFrame  audioFrame)
inline

Feeds samples from the frame to the player.

Parameters
audioFramePipeline processed frame ready for playback.

Implements FQLab.IAudioPlayer.

Here is the call graph for this function:

◆ Resume()

void FQLab.NAudioPlayer.Resume ( )
inline

Resumes internal device.

Implements FQLab.IAudioPlayer.

Member Data Documentation

◆ _outputDevice

WaveOutEvent FQLab.NAudioPlayer._outputDevice
private

◆ _sampleProvider

NAudioBufferedProvider? FQLab.NAudioPlayer._sampleProvider
private

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