audio: github.com/oov/audio/converter Index | Files

package converter

import "github.com/oov/audio/converter"

Package converter implements audio sample format converter.

Index

Package Files

converter.go float32.go float64.go int16.go int24.go int32.go uint8.go

func ByteToFloat32 Uses

func ByteToFloat32(a, b, c, d byte) float32

func ByteToFloat64 Uses

func ByteToFloat64(a, b, c, d, e, f, g, h byte) float64

func ByteToInt16 Uses

func ByteToInt16(a, b byte) int16

func ByteToInt24 Uses

func ByteToInt24(a, b, c byte) int32

func ByteToInt32 Uses

func ByteToInt32(a, b, c, d byte) int32

func ByteToUint8 Uses

func ByteToUint8(a byte) uint8

func Float32ToByte Uses

func Float32ToByte(s float32) (byte, byte, byte, byte)

func Float32ToFloat64 Uses

func Float32ToFloat64(s float32) float64

func Float32ToFloat64Slice Uses

func Float32ToFloat64Slice(input []float32, output []float64)

func Float32ToInt16 Uses

func Float32ToInt16(s float32) int16

func Float32ToInt16Slice Uses

func Float32ToInt16Slice(input []float32, output []int16)

func Float32ToInt24 Uses

func Float32ToInt24(s float32) int32

func Float32ToInt32 Uses

func Float32ToInt32(s float32) int32

func Float32ToInt32Slice Uses

func Float32ToInt32Slice(input []float32, output []int32)

func Float32ToUint8 Uses

func Float32ToUint8(s float32) uint8

func Float32ToUint8Slice Uses

func Float32ToUint8Slice(input []float32, output []uint8)

func Float64ToByte Uses

func Float64ToByte(s float64) (byte, byte, byte, byte, byte, byte, byte, byte)

func Float64ToFloat32 Uses

func Float64ToFloat32(s float64) float32

func Float64ToFloat32Slice Uses

func Float64ToFloat32Slice(input []float64, output []float32)

func Float64ToInt16 Uses

func Float64ToInt16(s float64) int16

func Float64ToInt16Slice Uses

func Float64ToInt16Slice(input []float64, output []int16)

func Float64ToInt24 Uses

func Float64ToInt24(s float64) int32

func Float64ToInt32 Uses

func Float64ToInt32(s float64) int32

func Float64ToInt32Slice Uses

func Float64ToInt32Slice(input []float64, output []int32)

func Float64ToUint8 Uses

func Float64ToUint8(s float64) uint8

func Float64ToUint8Slice Uses

func Float64ToUint8Slice(input []float64, output []uint8)

func Int16ToByte Uses

func Int16ToByte(s int16) (byte, byte)

func Int16ToFloat32 Uses

func Int16ToFloat32(s int16) float32

func Int16ToFloat32Slice Uses

func Int16ToFloat32Slice(input []int16, output []float32)

func Int16ToFloat64 Uses

func Int16ToFloat64(s int16) float64

func Int16ToFloat64Slice Uses

func Int16ToFloat64Slice(input []int16, output []float64)

func Int24ToByte Uses

func Int24ToByte(s int32) (byte, byte, byte)

func Int24ToFloat32 Uses

func Int24ToFloat32(s int32) float32

func Int24ToFloat64 Uses

func Int24ToFloat64(s int32) float64

func Int32ToByte Uses

func Int32ToByte(s int32) (byte, byte, byte, byte)

func Int32ToFloat32 Uses

func Int32ToFloat32(s int32) float32

func Int32ToFloat32Slice Uses

func Int32ToFloat32Slice(input []int32, output []float32)

func Int32ToFloat64 Uses

func Int32ToFloat64(s int32) float64

func Int32ToFloat64Slice Uses

func Int32ToFloat64Slice(input []int32, output []float64)

func Uint8ToByte Uses

func Uint8ToByte(s uint8) byte

func Uint8ToFloat32 Uses

func Uint8ToFloat32(s uint8) float32

func Uint8ToFloat32Slice Uses

func Uint8ToFloat32Slice(input []uint8, output []float32)

func Uint8ToFloat64 Uses

func Uint8ToFloat64(s uint8) float64

func Uint8ToFloat64Slice Uses

func Uint8ToFloat64Slice(input []uint8, output []float64)

type Converter Uses

type Converter interface {
    SampleSize() int
    ToFloat32(input []byte, output []float32)
    ToFloat64(input []byte, output []float64)
    FromFloat32(input []float32, output []byte)
    FromFloat64(input []float64, output []byte)
}

type Float32Converter Uses

type Float32Converter float32
var (
    Float32 Float32Converter
)

func (Float32Converter) FromFloat32 Uses

func (c Float32Converter) FromFloat32(input []float32, output []byte)

func (Float32Converter) FromFloat32Interleaved Uses

func (c Float32Converter) FromFloat32Interleaved(inputs [][]float32, output []byte)

func (Float32Converter) FromFloat64 Uses

func (c Float32Converter) FromFloat64(input []float64, output []byte)

func (Float32Converter) FromFloat64Interleaved Uses

func (c Float32Converter) FromFloat64Interleaved(inputs [][]float64, output []byte)

func (Float32Converter) SampleSize Uses

func (c Float32Converter) SampleSize() int

func (Float32Converter) ToFloat32 Uses

func (c Float32Converter) ToFloat32(input []byte, output []float32)

func (Float32Converter) ToFloat32Interleaved Uses

func (c Float32Converter) ToFloat32Interleaved(input []byte, outputs [][]float32)

func (Float32Converter) ToFloat64 Uses

func (c Float32Converter) ToFloat64(input []byte, output []float64)

func (Float32Converter) ToFloat64Interleaved Uses

func (c Float32Converter) ToFloat64Interleaved(input []byte, outputs [][]float64)

type Float64Converter Uses

type Float64Converter float64
var (
    Float64 Float64Converter
)

func (Float64Converter) FromFloat32 Uses

func (c Float64Converter) FromFloat32(input []float32, output []byte)

func (Float64Converter) FromFloat32Interleaved Uses

func (c Float64Converter) FromFloat32Interleaved(inputs [][]float32, output []byte)

func (Float64Converter) FromFloat64 Uses

func (c Float64Converter) FromFloat64(input []float64, output []byte)

func (Float64Converter) FromFloat64Interleaved Uses

func (c Float64Converter) FromFloat64Interleaved(inputs [][]float64, output []byte)

func (Float64Converter) SampleSize Uses

func (c Float64Converter) SampleSize() int

func (Float64Converter) ToFloat32 Uses

func (c Float64Converter) ToFloat32(input []byte, output []float32)

func (Float64Converter) ToFloat32Interleaved Uses

func (c Float64Converter) ToFloat32Interleaved(input []byte, outputs [][]float32)

func (Float64Converter) ToFloat64 Uses

func (c Float64Converter) ToFloat64(input []byte, output []float64)

func (Float64Converter) ToFloat64Interleaved Uses

func (c Float64Converter) ToFloat64Interleaved(input []byte, outputs [][]float64)

type Int16Converter Uses

type Int16Converter int16
var (
    Int16 Int16Converter
)

func (Int16Converter) FromFloat32 Uses

func (c Int16Converter) FromFloat32(input []float32, output []byte)

func (Int16Converter) FromFloat32Interleaved Uses

func (c Int16Converter) FromFloat32Interleaved(inputs [][]float32, output []byte)

func (Int16Converter) FromFloat64 Uses

func (c Int16Converter) FromFloat64(input []float64, output []byte)

func (Int16Converter) FromFloat64Interleaved Uses

func (c Int16Converter) FromFloat64Interleaved(inputs [][]float64, output []byte)

func (Int16Converter) SampleSize Uses

func (c Int16Converter) SampleSize() int

func (Int16Converter) ToFloat32 Uses

func (c Int16Converter) ToFloat32(input []byte, output []float32)

func (Int16Converter) ToFloat32Interleaved Uses

func (c Int16Converter) ToFloat32Interleaved(input []byte, outputs [][]float32)

func (Int16Converter) ToFloat64 Uses

func (c Int16Converter) ToFloat64(input []byte, output []float64)

func (Int16Converter) ToFloat64Interleaved Uses

func (c Int16Converter) ToFloat64Interleaved(input []byte, outputs [][]float64)

type Int24Converter Uses

type Int24Converter int32
var (
    Int24 Int24Converter
)

func (Int24Converter) FromFloat32 Uses

func (c Int24Converter) FromFloat32(input []float32, output []byte)

func (Int24Converter) FromFloat32Interleaved Uses

func (c Int24Converter) FromFloat32Interleaved(inputs [][]float32, output []byte)

func (Int24Converter) FromFloat64 Uses

func (c Int24Converter) FromFloat64(input []float64, output []byte)

func (Int24Converter) FromFloat64Interleaved Uses

func (c Int24Converter) FromFloat64Interleaved(inputs [][]float64, output []byte)

func (Int24Converter) SampleSize Uses

func (c Int24Converter) SampleSize() int

func (Int24Converter) ToFloat32 Uses

func (c Int24Converter) ToFloat32(input []byte, output []float32)

func (Int24Converter) ToFloat32Interleaved Uses

func (c Int24Converter) ToFloat32Interleaved(input []byte, outputs [][]float32)

func (Int24Converter) ToFloat64 Uses

func (c Int24Converter) ToFloat64(input []byte, output []float64)

func (Int24Converter) ToFloat64Interleaved Uses

func (c Int24Converter) ToFloat64Interleaved(input []byte, outputs [][]float64)

type Int32Converter Uses

type Int32Converter int32
var (
    Int32 Int32Converter
)

func (Int32Converter) FromFloat32 Uses

func (c Int32Converter) FromFloat32(input []float32, output []byte)

func (Int32Converter) FromFloat32Interleaved Uses

func (c Int32Converter) FromFloat32Interleaved(inputs [][]float32, output []byte)

func (Int32Converter) FromFloat64 Uses

func (c Int32Converter) FromFloat64(input []float64, output []byte)

func (Int32Converter) FromFloat64Interleaved Uses

func (c Int32Converter) FromFloat64Interleaved(inputs [][]float64, output []byte)

func (Int32Converter) SampleSize Uses

func (c Int32Converter) SampleSize() int

func (Int32Converter) ToFloat32 Uses

func (c Int32Converter) ToFloat32(input []byte, output []float32)

func (Int32Converter) ToFloat32Interleaved Uses

func (c Int32Converter) ToFloat32Interleaved(input []byte, outputs [][]float32)

func (Int32Converter) ToFloat64 Uses

func (c Int32Converter) ToFloat64(input []byte, output []float64)

func (Int32Converter) ToFloat64Interleaved Uses

func (c Int32Converter) ToFloat64Interleaved(input []byte, outputs [][]float64)

type InterleavedConverter Uses

type InterleavedConverter interface {
    SampleSize() int
    ToFloat32Interleaved(input []byte, outputs [][]float32)
    ToFloat64Interleaved(input []byte, outputs [][]float64)
    FromFloat32Interleaved(inputs [][]float32, output []byte)
    FromFloat64Interleaved(inputs [][]float64, output []byte)
}

type Uint8Converter Uses

type Uint8Converter uint8
var (
    Uint8 Uint8Converter
)

func (Uint8Converter) FromFloat32 Uses

func (c Uint8Converter) FromFloat32(input []float32, output []byte)

func (Uint8Converter) FromFloat32Interleaved Uses

func (c Uint8Converter) FromFloat32Interleaved(inputs [][]float32, output []byte)

func (Uint8Converter) FromFloat64 Uses

func (c Uint8Converter) FromFloat64(input []float64, output []byte)

func (Uint8Converter) FromFloat64Interleaved Uses

func (c Uint8Converter) FromFloat64Interleaved(inputs [][]float64, output []byte)

func (Uint8Converter) SampleSize Uses

func (c Uint8Converter) SampleSize() int

func (Uint8Converter) ToFloat32 Uses

func (c Uint8Converter) ToFloat32(input []byte, output []float32)

func (Uint8Converter) ToFloat32Interleaved Uses

func (c Uint8Converter) ToFloat32Interleaved(input []byte, outputs [][]float32)

func (Uint8Converter) ToFloat64 Uses

func (c Uint8Converter) ToFloat64(input []byte, output []float64)

func (Uint8Converter) ToFloat64Interleaved Uses

func (c Uint8Converter) ToFloat64Interleaved(input []byte, outputs [][]float64)

Package converter imports 1 packages (graph) and is imported by 2 packages. Updated 2016-07-23. Refresh now. Tools for package owners.