flac

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package flac decodes FLAC for package audio, with github.com/mewkiz/flac: .flac files, and FLAC in MP4 through package audio/mp4, as lossless DASH streams carry it. Import it for its side effect:

import _ "github.com/HyperparameterSI/golet/backend/audio/flac"

FLAC's frames stand alone, so a seek lands on the very frame of sound asked for, without a seek table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodec

func NewCodec(blocks []byte) (mp4.Codec, error)

NewCodec returns a decoder of the FLAC frames of an MP4's track whose configuration, its dfLa box's, is blocks: the metadata blocks, as a FLAC file has them after "fLaC".

func NewDecoder

func NewDecoder(r io.ReadSeeker) (audio.Decoder, error)

NewDecoder returns a decoder of the FLAC file r holds, after an ID3 tag if one is first. It decodes to stereo: a mono file in both, and the front left and right of more channels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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