transcoder

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BIT_8    = 8
	BIT_16   = 16
	BIT_24   = 24
	BIT_32   = 32
	BIT_64   = 64
	BIT_128  = 128
	BIT_256  = 256
	BIT_512  = 512
	BIT_1024 = 1024
)

Bit enum to convert standard bit sizes

Variables

This section is empty.

Functions

func TranscodeBytes

func TranscodeBytes(in *sopro.In, out *sopro.Out, tr *Transcoder) (int, error)

Types

type Transcoder

type Transcoder struct {
	MethodT                int               // MethodT is the method of transcoding if needed. Default is 0 (no transcoding)
	MethodTAdvancedConfigs interface{}       // MethodAdvancedConfigs is the method of advanced configs if needed
	SizeBuffer             int               // SizeBuffer is the size of the buffer used in the transcoding process.Default is 1024
	InConfigs              sopro.AudioConfig // the source configuration
	OutConfigs             sopro.AudioConfig // the target configuration
	BitDepth               int               // the bit depth (e.g. 8, 16, 24) Needs to be equal for source and target
	Verbose                bool              // if true, the transcoding process will be verbose
}

Transcoder is the main struct for the transcoding process

func (*Transcoder) Mulaw2Wav

func (t *Transcoder) Mulaw2Wav(in *sopro.In, out *sopro.Out) error

func (*Transcoder) Pcm2Wav added in v0.1.5

func (t *Transcoder) Pcm2Wav(in *sopro.In, out *sopro.Out) error

func (*Transcoder) Println

func (t *Transcoder) Println(items ...any)

Println prints the items if the transcoder is in verbose mode

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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