alac

package module
v0.0.0-...-77c2ffb Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 2 Imported by: 0

README

ALAC (Apple Lossless) decoder in pure Go

install

$ go install github.com/alicebob/alac

Todo

  • fmtp stuff can now be loaded into ALAC decoder
  • Decoder exports some information such as frequency, channels, bit-depth

Documentation

Overview

Package alac - Apple Lossless (ALAC) decoder

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alac

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

func New

func New() (*Alac, error)

New alac decoder. Sample size 16, 2 chan!

func (*Alac) BitDepth

func (alac *Alac) BitDepth() int

BitDepth returns the number of bits per sample and channel.

func (*Alac) Decode

func (alac *Alac) Decode(f []byte) []byte

Decode decodes a frame.

func (*Alac) NumChannels

func (alac *Alac) NumChannels() int

NumChannels returns the number of channels to decode.

func (*Alac) SampleRate

func (alac *Alac) SampleRate() int

SampleRate returns the SampleRate in samples per second.

Jump to

Keyboard shortcuts

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