Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Recording audio and save as Raw data (A-Law)

$
0
0

NAudio includes a fully managed A law encoder, in the ALawEncoder class, allowing you to pass in 16 bit samples and get out 8 bit a-law encoded bytes.

Alternatively, the simplest way to convert files would be to pass your WaveFileReader into a WaveFormatConversionStream (with target format of WaveFormat.CreateALawFormat(...)) and then pass that into WaveFileWriter.CreateWaveFile


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>