Forrest logo
back to the vgmstream_cli tool

vgmstream_cli:tldr:eff39

vgmstream_cli: Play the file looping endlessly (`channels` and `rate` must match metadata).
$ vgmstream_cli ${path-to-input-adc} -pec | aplay --format cd --channels ${1} --rate ${44100}
try on your machine

This command is used to play audio in a specific format using the vgmstream_cli and aplay tools. Here is the breakdown of each component:

  • vgmstream_cli: This is a command-line tool that is part of the vgmstream project. It is responsible for decoding and playing audio files.

  • ${path-to-input-adc}: This is the path to the input audio file. ${path-to-input-adc} should be replaced with the actual path on your system. This file is the one you want to play.

  • -pec: This is an option for vgmstream_cli that stands for "print extra channel layout." It instructs vgmstream to output the channel layout information.

  • |: This is a pipe symbol that is used to connect the output of one command to the input of another. In this case, it connects the output of vgmstream_cli to the input of aplay.

  • aplay: This is a command-line tool for playing audio files on Linux. It is used here to play the audio output from vgmstream_cli.

  • --format cd: This is an option for aplay that sets the audio format to CD quality (16-bit, little-endian, stereo). CD quality is commonly used for audio playback.

  • --channels ${1}: This option specifies the number of audio channels to use. ${1} is a placeholder that should be replaced with the desired number of channels.

  • --rate ${44100}: This option specifies the audio sample rate to use. ${44100} is a placeholder that should be replaced with the desired sample rate, which is typically 44100 Hz for CD-quality audio.

In summary, this command takes an input audio file, decodes it using vgmstream_cli, and then plays it using aplay with the specified format, number of channels, and sample rate.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the vgmstream_cli tool