VgmSharp 0.1.1

dotnet add package VgmSharp --version 0.1.1
                    
NuGet\Install-Package VgmSharp -Version 0.1.1
                    
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="VgmSharp" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VgmSharp" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="VgmSharp" />
                    
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 VgmSharp --version 0.1.1
                    
#r "nuget: VgmSharp, 0.1.1"
                    
#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 VgmSharp@0.1.1
                    
#: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=VgmSharp&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=VgmSharp&version=0.1.1
                    
Install as a Cake Tool

VgmSharp

ISC Licensed Get it on NuGet

A cross-platform .NET wrapper around vgmstream's libvgmstream C API, for decoding hundreds of video game audio formats (ADX, HCA, DSP, BRSTM, XWMA, and many more — see VgmStream.NativeApiVersion / libvgmstream_get_extensions()).

Getting Started

PM> Install-Package VgmSharp
using VgmSharp;

// Decode a file straight to a .wav
using var input = VgmStreamReader.Open("bgm01.adx", config: VgmStreamConfig.PlayOnceNoLoop());
using var output = File.Create("bgm01.wav");
input.DecodeTo(output);

// Or stream it
using var reader = VgmStreamReader.Open("bgm01.adx");
Console.WriteLine(stream.Format); // channels, sample rate, codec, loop points, etc.
foreach (var pcmBlock in reader.RenderBlocks())
{
    // ...
}

// Or decode from an arbitrary Stream (archive entry, embedded resource, network...)
using var reader2 = VgmStreamReader.Open(myStream, "stream.vag");
byte[] pcm = reader2.DecodeAll();

Building

sudo apt-get install -y git cmake build-essential libmpg123-dev libvorbis-dev libspeex-dev
./native/build-linux.sh
# requires: git, cmake, Visual Studio (Desktop C++ workload) or VS Build Tools
.\native\build-windows.ps1
dotnet pack src\VgmSharp.slnx -c Release
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 66 7/18/2026