Switch homebrew library to load, parse, and play sounds from BFSAR files and related file formats
This library is in development and may not implement complete parsing of each format it supports. Details not needed for sound browsing and playback on the Switch may be left unimplemented.
See Setting up Development Environment to install the required build dependencies
There are multiple ways to bundle the code as part of your project which are:
Build with make
and link against pulsar
in your project.
Then add the include
and lib
dirs to your corresponding search paths
(If you're using a standard homebrew Makefile, this is as easy as adding this directory to the LIBDIRS
variable).
Include deps.mk
in your Makefile, and then use the imported variables to add this library sources to your project (just like the Makefile at the root of this repo does).
PLSR_SOURCES
: Absolute paths to source foldersPLSR_INCLUDES
: Absolute path to the include folder
Build with make examples
at the root of this repo, or with make
directly in the examples
folder.
Binaries will be located at ./examples/build/*.nro
Doxygen is required to generate documentation from source code.
Build with make docs
at the root of this repo, or with make
directly in the docs
folder.
The resulting documentation will be located at ./docs/build/html
.
If you find yourself editing the documentation often, use make docs-watch
in the docs
folder to regenerate the documentation when the source files change.