Class NAudioHelpers
The NAudio helper and extension class.
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 |
---|---|---|
IWaveProvider | waveProvider | The wave provider. |
Returns
Type | Description |
---|---|
MemoryStream | The memory stream. |
ToEvergineFormat(WaveFormat)
Converts to Evergine wave format.
Declaration
public static WaveFormat ToEvergineFormat(this WaveFormat waveFormat)
Parameters
Type | Name | Description |
---|---|---|
WaveFormat | waveFormat | The NAudio wave format. |
Returns
Type | Description |
---|---|
WaveFormat | The Evergine wave format. |
ToNAudioWaveFormat(WaveFormat)
Converts to an NAudio wave format.
Declaration
public static WaveFormat ToNAudioWaveFormat(this WaveFormat waveFormat)
Parameters
Type | Name | Description |
---|---|---|
WaveFormat | waveFormat | The wave format. |
Returns
Type | Description |
---|---|
WaveFormat | Returns an NAudio wave format. |