A simple audio engine for Go with an SDL2 back-end and others to come eventually.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Noah Petherbridge ae3b0695ba Initial code for basic SDL2 audio engine 7 місяці тому
..
README.md Initial code for basic SDL2 audio engine 7 місяці тому
main.go Initial code for basic SDL2 audio engine 7 місяці тому

README.md

Example: play

This example uses the SDL2 Mixer engine to implement a simple command line program that plays music and sound files.

Usage

play [options] path/to/file.ogg

Supports file types .ogg, .mp3 and .wav.

Default behavior calls LoadSound() or LoadMusic() using the filename given. Use the -binary option to go through LoadSoundBin() or LoadMusicBin() to test initializing it by bytes array instead.

Options

-binary
  Opens the file first as a bytes array, and feeds it to the audio engine
  as binary data instead of by passing a filename on disk.

-loop <int>
  Loop the audio file, default 0 will only play it once. -1 for music will
  play forever.