wavwriter

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2022 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package wavwriter allows writing of audio data to disk as a WAV file. Note that audio data is buffered in memory in its entirity, and written to disk on program end. It is therefore probably only suitable for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WavWriter

type WavWriter struct {
	// contains filtered or unexported fields
}

WavWriter implements the television.AudioMixer interface.

func NewWavWriter added in v0.16.0

func NewWavWriter(filename string) (*WavWriter, error)

NewWavWriter is the preferred method of initialisation for the WavWriter type.

func (*WavWriter) EndMixing

func (aw *WavWriter) EndMixing() (rerr error)

EndMixing implements the television.AudioMixer interface.

func (*WavWriter) Reset added in v0.8.0

func (aw *WavWriter) Reset()

Reset implements the television.AudioMixer interface.

func (*WavWriter) SetAudio

func (aw *WavWriter) SetAudio(sig []signal.SignalAttributes) error

SetAudio implements the television.AudioMixer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL