Documentation ¶
Index ¶
- Constants
- type AnalyzerChannel
- func (c AnalyzerChannel) AppendGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel)
- func (c AnalyzerChannel) PrependGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel)
- func (c AnalyzerChannel) SkipEndSamples(samples int) (channel AnalyzerChannel)
- func (c AnalyzerChannel) SkipEndSamplesMultiple(wg *sync.WaitGroup, offset *atomic.Uint32, samples int) (channel AnalyzerChannel)
- func (c AnalyzerChannel) SkipStartSamples(samples int) (channel AnalyzerChannel)
- func (c AnalyzerChannel) Split(n int) (channels []AnalyzerChannel)
- type AnalyzerDecoder
- type AnalyzerPacket
- type Decoder
- type Encoder
- type Format
- type WriteSeekCloser
Constants ¶
View Source
const IdentifyPeekBytes = 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzerChannel ¶
type AnalyzerChannel chan *AnalyzerPacket
func MergeHasherChannels ¶
func MergeHasherChannels(channels ...AnalyzerChannel) (channel AnalyzerChannel)
func NewAnalyzerChannel ¶
func NewHasherAudioGap ¶
func NewHasherAudioGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel)
func (AnalyzerChannel) AppendGap ¶
func (c AnalyzerChannel) AppendGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel)
func (AnalyzerChannel) PrependGap ¶
func (c AnalyzerChannel) PrependGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel)
func (AnalyzerChannel) SkipEndSamples ¶
func (c AnalyzerChannel) SkipEndSamples(samples int) (channel AnalyzerChannel)
func (AnalyzerChannel) SkipEndSamplesMultiple ¶
func (c AnalyzerChannel) SkipEndSamplesMultiple(wg *sync.WaitGroup, offset *atomic.Uint32, samples int) (channel AnalyzerChannel)
func (AnalyzerChannel) SkipStartSamples ¶
func (c AnalyzerChannel) SkipStartSamples(samples int) (channel AnalyzerChannel)
func (AnalyzerChannel) Split ¶
func (c AnalyzerChannel) Split(n int) (channels []AnalyzerChannel)
type AnalyzerDecoder ¶
type AnalyzerDecoder interface { Decoder // OpenAnalyzer Opens a stream and decodes it into an audio.Source, and additionally copy AnalyzerPacket back OpenAnalyzer(r io.ReadSeekCloser) (audio.Source, AnalyzerChannel, error) }
type AnalyzerPacket ¶
type Encoder ¶
type Encoder interface { Format // Encode Receives an audio.Source and encodes it into a writer. Some formats can do special operations if writer is also an io.Seeker Encode(source audio.Source, writer io.WriteCloser, options map[string]interface{}) error // EncoderDescription returns a longer description of the backing libraries or versions EncoderDescription() string }
type Format ¶
type Format interface { // Identify checks whether a format is of a type. peek includes a few first bytes, extension is the lowercase file extension without a dot. Identify(peek [IdentifyPeekBytes]byte, extension string) bool // Name returns the name of the codec or format Name() string }
Click to show internal directories.
Click to hide internal directories.