VGAudio
VGAudio copied to clipboard
How do you correctly use the library? (specifically to decode ADX to PCM byte array)
This would be one easy way to get a wave file:
byte[] adxFile;
AudioData audio = new AdxReader().Read(adxFile);
byte[] waveFile = new WaveWriter().GetFile(audio);
Or to get the PCM data:
var pcm16 = audio.GetFormat<Pcm16Format>();
short[][] channels = pcm16.Channels;
thx
although, I'm using this in Unity, and Unity requires it to be as one byte array (even when data is stereo)
just saying, it comes out waay too loud