wav

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBitsPerSample added in v0.2.387

func GetBitsPerSample(data []byte) uint16

GetBitsPerSample return bits per sample

func GetBitsRate added in v0.2.387

func GetBitsRate(data []byte) uint32

GetBitsRate returns bit rate from header

func GetBitsRateCalc added in v0.2.387

func GetBitsRateCalc(data []byte) uint32

GetBitsRateCalc calculates bits per sample - sometimes there is incorrect value for bitsrate in header

func GetChannels added in v0.2.387

func GetChannels(data []byte) uint16

GetChannels return channels

func GetSampleRate added in v0.2.387

func GetSampleRate(data []byte) uint32

GetSampleRate return sample rate from header

func GetSize

func GetSize(data []byte) uint32

GetSize get data bits size

func IsValid

func IsValid(data []byte) bool

IsValid test if wav binary data is OK, at least the size and contains data header key

func SizeBytes

func SizeBytes(data uint32) []byte

SizeBytes return wav size bytes

func TakeData

func TakeData(data []byte) []byte

TakeData copy data

func TakeHeader

func TakeHeader(data []byte) []byte

TakeHeader copy header

Types

This section is empty.

Jump to

Keyboard shortcuts

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