CUETools.Codecs 1.0.2

.net Standard port of CUETools.Codecs Original code from Gregory S. Chudov

Install-Package CUETools.Codecs -Version 1.0.2
dotnet add package CUETools.Codecs --version 1.0.2
<PackageReference Include="CUETools.Codecs" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CUETools.Codecs --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.net Standard port of CUETools.Codecs.FLAKE Original code from Gregory S. Chudov and Justin Ruggles

This is for encoding into FLAC.

This has not been tested much yet, I just converted it to .net standard and left much of the original code intact

private void ConvertToFlac(Stream sourceStream, Stream destinationStream)
        {
            var audioSource = new WAVReader(null, sourceStream);
            try
            {
                var buff = new AudioBuffer(audioSource, 0x10000);
                var flakeWriter = new FlakeWriter(null, destinationStream, audioSource.PCM);
                flakeWriter.CompressionLevel = 8;
                while (audioSource.Read(buff, -1) != 0)
                {
                    flakeWriter.Write(buff);
                }
                flakeWriter.Close();
            }
            finally
            {
                audioSource.Close();
            }
        }

.net Standard port of CUETools.Codecs.FLAKE Original code from Gregory S. Chudov and Justin Ruggles

This is for encoding into FLAC.

This has not been tested much yet, I just converted it to .net standard and left much of the original code intact

private void ConvertToFlac(Stream sourceStream, Stream destinationStream)
        {
            var audioSource = new WAVReader(null, sourceStream);
            try
            {
                var buff = new AudioBuffer(audioSource, 0x10000);
                var flakeWriter = new FlakeWriter(null, destinationStream, audioSource.PCM);
                flakeWriter.CompressionLevel = 8;
                while (audioSource.Read(buff, -1) != 0)
                {
                    flakeWriter.Write(buff);
                }
                flakeWriter.Close();
            }
            finally
            {
                audioSource.Close();
            }
        }

Release Notes

Added IDisposable to WAVReader and WAVWriter

  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
1.0.2 426 12/18/2018
1.0.1 82 12/17/2018
1.0.0 73 12/14/2018