package
0.0.0-20210324043649-0cdb44b67f72
Repository: https://github.com/briancarducci/discordbot.git
Documentation: pkg.go.dev

# Functions

Play plays a sound specified by args[0].

# Variables

AudioApplication sets the opus encoder Application value.
AudioBitrate sets the opus encoder bitrate (quality) value.
AudioChannels sets the ops encoder channel value.
AudioFrameRate sets the opus encoder Frame Rate value.
AudioFrameSize sets the opus encoder frame size value.
Create channels used by the reader/encoder/writer go routines.
OpusEncoder holds an instance of an gopus EncoderOpusEncoder *gopus.EncoderEncoderErr error.
max size of opus data.
OpusEncoder holds an instance of an gopus EncoderOpusEncoder *gopus.EncoderEncoderErr error.
These values are taken from https://github.com/bwmarrin/dca/blob/master/cmd/dca/main.go Also, the general structure of read -> encode -> output was taken from this repo, but was tweaked to work directly with PCM files/streams instead of having to deal with DCA files.
WaitGroup is used to wait untill all goroutines have finished.