Click or drag to resize
AudioCompressionManagerReverse Method (IntPtr, Byte)
Reverses Wave audio data.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static byte[] Reverse(
	IntPtr format,
	byte[] data
)

Parameters

format
Type: SystemIntPtr
audio format
data
Type: SystemByte
audio data

Return Value

Type: Byte

[Missing <returns> documentation for "M:Alvas.Audio.AudioCompressionManager.Reverse(System.IntPtr,System.Byte[])"]

Examples
This example shows simple using of Reverse method.
string inFile = "test2.wav";
string outFile = "ReverseTest3.wav";

WaveReader wr = new WaveReader(File.OpenRead(inFile));
IntPtr format = wr.ReadFormat();
byte[] data = wr.ReadData();
wr.Close();
WaveWriter ww = new WaveWriter(File.Create(outFile), AudioCompressionManager.FormatBytes(format));
ww.WriteData(AudioCompressionManager.Reverse(format, data));
ww.Close();
See Also