waveIO

package
v0.0.0-...-6d3268d Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelSilence

func DelSilence(pnSrc []int16, K int) []int16

func WaveLoad

func WaveLoad(srcFile string) ([]byte, error)

func WaveSave

func WaveSave(detFile string, wavData []int16, sampsRate, length uint32) error

Types

type DataChunk

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

func (DataChunk) Bytes

func (d DataChunk) Bytes() []byte

type FmtChunk

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

func (FmtChunk) Bytes

func (f FmtChunk) Bytes() []byte

type WavInfo

type WavInfo struct {
	Length      int64 // number of samples in the data chunk
	SampleRate  int   // sample rate
	BitSPSample int   // bits per sample
}

type WaveChunk

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

func (WaveChunk) Bytes

func (w WaveChunk) Bytes() []byte

type WaveIO

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

func (*WaveIO) Bytes

func (w *WaveIO) Bytes() []byte

Jump to

Keyboard shortcuts

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