An SPC player and WAV converter
- C++ 73%
- Makefile 12.6%
- Shell 9.5%
- C 4.6%
- Dockerfile 0.3%
| dockerfiles | ||
| vendor | ||
| .gitignore | ||
| .gitmodules | ||
| compile-cross.sh | ||
| docker-compose.yml | ||
| getch2-win.cpp | ||
| getch2.cpp | ||
| getch2.h | ||
| LICENSE | ||
| main.cpp | ||
| Makefile | ||
| README.md | ||
| release.sh | ||
spct, an SPC tool for SNES music playback
This is a CLI program to play back or render SPC files.
Uses the following libraries:
- miniaudio for WAV output and audio playback
- Blargg's libgme for SPC emulation
- An adaptation of getch2 from MPlayer (Originally from GyS-TermIO v2.0 for GySmail v3) for terminal UI keybinding / termcap management.
Usage
$ spct --help
usage:
spct render [opts] infile.spc outfile.wav
opts:
-s N
--seconds N
number of seconds to record (default: 45)
spct play [opts] infile.spc
opts:
-s N
--seek N
number of seconds to seek at the start (default: 0)
can be a floating point number like 123.456
Building
- Requirements: ncurses headers, basic libc, make, and cmake.
- Clone the repository recursively with
git clone --recursiveor initialize the submodules withgit submodule update --init. - Run
make.
Installing
- Copy the file
spctsomewhere on your PATH, or run it with a direct filepath. - Macos users can install with homebrew:
$ brew tap jneen/tap https://codeberg.org/jneen/tap
$ brew install spct