Class NAudioHelpers
The NAudio Helper and extension class.
Inherited Members
Namespace: Evergine.Assets.Importers.Audio
Assembly: Evergine.Assets.dll
Syntax
public static class NAudioHelpers
Methods
GetDataStream(IWaveProvider)
Gets the data stream of a wave provider.
Declaration
public static MemoryStream GetDataStream(this IWaveProvider waveProvider)
Parameters
Type | Name | Description |
---|---|---|
IWave |
waveProvider | The wave provider. |
Returns
Type | Description |
---|---|
Memory |
The Memory stream. |
ToEvergineFormat(WaveFormat)
Converts to Evergine Wave format.
Declaration
public static WaveFormat ToEvergineFormat(this WaveFormat waveFormat)
Parameters
Type | Name | Description |
---|---|---|
Wave |
waveFormat | The NAudio wave format. |
Returns
Type | Description |
---|---|
Wave |
The Evergine Wave Format. |
ToNAudioWaveFormat(WaveFormat)
Converts to NAudio wave format.
Declaration
public static WaveFormat ToNAudioWaveFormat(this WaveFormat waveFormat)
Parameters
Type | Name | Description |
---|---|---|
Wave |
waveFormat | The wave format. |
Returns
Type | Description |
---|---|
Wave |
NAudio wave format. |