Skip to content
vgmstreamPublic

About

vgmstream - A library for playback of various streamed audio formats used in video games.

Topics

Resources

Security policy

Stars

2.3k stars

Watchers

43 watching

Forks

Latest commit

 

History

8,088 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vgmstream

This is vgmstream, a library for playing streamed (prerecorded) video game audio.

Some of vgmstream's features:

  • Decodes hundreds of video game music formats and codecs, from typical game engine files to obscure single-game codecs.
  • Support for looped BGM, using file's internal metadata for smooth transitions, with accurate sample counts.
  • Subsongs, playing a format's multiple internal songs separately.
  • Many types of companion files (data split into multiple files) and custom containers.
  • Encryption keys, internal stream names, and other unusual cases found in game audio.
  • TXTH function, to add external support for unsupported formats, including raw audio in many forms.
  • TXTP function, for real-time and per-file config, like forced looping, removing channels, playing a single subsong, or fusing multiple files into one.
  • Simple external tagging via .m3u files.
  • Plugins are available for various media player software and operating systems.

Resources:

Getting vgmstream

See automated builds and releases.

There are multiple end-user components:

The main library (plain vgmstream) is the code that handles audio conversion, while the above components are what you use to get sound.

Usage

To convert game audio to .wav, get vgmstream-cli then drag-and-drop files to it (support may vary per O.S.). This should create (file.extension).wav, if the format is supported.

You can also try the online web player instead. See: https://vgmstream.org

Alternatively, install an audio player like foobar2000 (on Windows) or Audacious (on Linux) and the vgmstream plugin, and play files directly. They can unpack "subsongs" to the playlist, set options like infinite looping, or convert many .wav at once with the player's interface.

See components in the usage guide for further explanations. The aim is feature parity, but there are some differences between them.

Note that vgmstream cannot encode (convert from .wav to a game format), it only decodes (plays game audio).

Windows binaries

Prebuilt binaries:

The foobar2000 component is also available on https://www.foobar2000.org (current release).

Or compile from source, see the build guide.

Linux binaries

Prebuilt CLI binary, statically linked for systems running Linux kernel v3.2 and above:

Building from source will also give you vgmstream.so (Audacious plugin), and vgmstream123 (command-line player), which can't be statically linked.

When building it needs several external libraries. For a quick script for Debian and Ubuntu-style distros run ./make-build-cmake.sh. The script will need to install dependencies first, so you may prefer to run steps manually, which the build guide describes in detail.

macOS binaries

Prebuilt CLI binary:

Otherwise follow the build guide.

More info

Enjoy! hcs

About

vgmstream - A library for playback of various streamed audio formats used in video games.

Topics

Resources

Security policy

Stars

2.3k stars

Watchers

43 watching

Forks

Releases

Used by

Contributors

Languages