KevInc.Audio.Cafe.NAudio 0.1.2

dotnet add package KevInc.Audio.Cafe.NAudio --version 0.1.2
                    
NuGet\Install-Package KevInc.Audio.Cafe.NAudio -Version 0.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KevInc.Audio.Cafe.NAudio" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KevInc.Audio.Cafe.NAudio" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="KevInc.Audio.Cafe.NAudio" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KevInc.Audio.Cafe.NAudio --version 0.1.2
                    
#r "nuget: KevInc.Audio.Cafe.NAudio, 0.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KevInc.Audio.Cafe.NAudio@0.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KevInc.Audio.Cafe.NAudio&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=KevInc.Audio.Cafe.NAudio&version=0.1.2
                    
Install as a Cake Tool

KevInc.Audio

KevInc.Audio provides .NET libraries for game-audio containers, codecs, and adapter layers. The package family is dependency-conscious: core packages work with raw streams and PCM data, while NAudio integration lives in opt-in .NAudio packages.

Packages

Package Purpose Heavy dependencies
KevInc.Audio Shared PCM16 representation and WAV writing helpers. None
KevInc.Audio.NAudio NAudio adapters, Opus stream helpers, and sample providers. NAudio, Concentus
KevInc.Audio.Xma2 XMA2 encode/decode helpers that work with raw PCM. None
KevInc.Audio.Xma2.NAudio XMA2 decoding as an NAudio WaveStream. NAudio
KevInc.Audio.Cafe Cafe DSP ADPCM decoding to raw PCM. None
KevInc.Audio.Cafe.NAudio Cafe DSP ADPCM decoding as an NAudio WaveStream. NAudio
KevInc.Audio.Nx Nintendo Switch Opus container conversion. None
KevInc.Audio.Nx.NAudio Nintendo Switch Opus decoding as an NAudio WaveStream. NAudio
KevInc.Raki RAKI audio wrapper parsing. None
KevInc.Raki.NAudio RAKI decoding through the NAudio adapter packages. NAudio

Install

dotnet add package KevInc.Audio
dotnet add package KevInc.Raki
dotnet add package KevInc.Audio.Xma2

Use .NAudio packages only when your application needs NAudio streams or sample providers:

dotnet add package KevInc.Raki.NAudio
dotnet add package KevInc.Audio.Nx.NAudio

Example

Write PCM16 audio to a WAV stream:

using KevInc.Audio;

Pcm16Audio audio = new(sampleRate: 48000, channels: 2, samples);
await using FileStream output = File.Create("audio.wav");
PcmWaveWriter.WriteWave(audio, output);

Read a RAKI header:

using KevInc.Raki;

await using FileStream input = File.OpenRead("audio.raki");
RakiAudioHeader header = RakiAudioReader.ReadHeader(input);

Build And Test

./run.ps1

Create local NuGet packages:

./run.ps1 -Configuration Release -Pack

Packages are written to artifacts/packages.

Test Coverage

The test suite covers PCM/WAV output, RAKI header parsing, and dependency boundaries that keep NAudio out of the core packages.

Versioning

The repository uses Nerdbank.GitVersioning. Package versions come from version.json and Git metadata.

License

This repository is licensed under GPL-3.0-only unless a package explicitly states otherwise.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on KevInc.Audio.Cafe.NAudio:

Package Downloads
KevInc.Raki.NAudio

RAKI encoding and decoding through NAudio-backed codec adapters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.2 106 5/11/2026
0.1.1 107 5/10/2026