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

Wrapper class for the NAudio file reader. Enables optional decoupling of NAudio from the project architecture. More...

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

Public Member Functions

 AudioStreamWrapper (AudioFormat format, IAudioReader reader)
 
AudioFrameReadFrame (int size)
 Formats samples read by internal reader into consistent frames AudioFrame.
 
void Dispose ()
 

Properties

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

Private Attributes

readonly IAudioReader _reader
 Internal NAudio provided reader.
 

Detailed Description

Wrapper class for the NAudio file reader. Enables optional decoupling of NAudio from the project architecture.

Constructor & Destructor Documentation

◆ AudioStreamWrapper()

FQLab.AudioStreamWrapper.AudioStreamWrapper ( AudioFormat  format,
IAudioReader  reader 
)
inline

Member Function Documentation

◆ Dispose()

void FQLab.AudioStreamWrapper.Dispose ( )
inline

◆ ReadFrame()

AudioFrame? FQLab.AudioStreamWrapper.ReadFrame ( int  size)
inline

Formats samples read by internal reader into consistent frames AudioFrame.

Parameters
sizeReads a frame of said size.
Returns
AudioFrame of specified size.

Implements FQLab.IAudioStream.

Here is the call graph for this function:

Member Data Documentation

◆ _reader

readonly IAudioReader FQLab.AudioStreamWrapper._reader
private

Internal NAudio provided reader.

Property Documentation

◆ Format

AudioFormat FQLab.AudioStreamWrapper.Format
get

Stream metadata.

Implements FQLab.IAudioStream.


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