Skip to content

replit-discord/audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repl.it audio bindings bundle.

This package includes the go bindings and static library files needed for audio at repl.it.

Credits go to:

  • libsamplerate for the C library.
  • opus for opus support
  • opusfile For opus file decoding
  • libogg Required to build opus and used in the go bindings.
  • OpenSSL Not included but is used to build opus.
  • gosamplerate go bindings for libsamplerate. (modified to use CFLAGS and LDFLAGS instead of pkg-config, and to take the output buffer size as an argument to NewSource rather than setting it to the input buffer size)
  • opus (the go bindings, not opus itself): Bindings for libopus. (modified to use CFLAGS and LDFLAGS in place of pkg-config)
  • this stackoverflow answer which includes a short c script used to static link libm.a without libc. They borrowed it from here

Contributing

For new file support, we need the following:

  • Abillity to find file/decoder samplerate (or a static samplerate).
  • Abillity to get channel count of the decoder (or a static channel count).
  • Abillity to read into a pcm buffer (Format can be whatever, we just need to know what the format is).
  • Go bindings for the library.
  • Static .a library, not .so files.
  • Sources must be cited.
  • If there is a pure-go version of the library just send a request for that file format over at https://repl.it/feedback, this is just for bundling c libraries with go bindings.

Note that this is not where you should report issues for audio at repl.it, instead report at https://repl.it/bugs/

About

go bindings and static library files used for decoding some audio files at repl.it.

Resources

License

Stars

Watchers

Forks

Packages

No packages published