rsf

package
v0.0.0-...-6217932 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

README

rsf

The rsf (Royal Straight fLaC) package provides support for reading flac (Free Lossless Audio Codec) files.

documentation

Documentation provided by GoPkgDoc:

public domain

This code is hereby release this code into the public domain.

Documentation

Overview

Package rsf (Royal Straight fLaC) implements access to FLAC files.

Index

Constants

View Source
const FlacSignature = "fLaC"

FlacSignature is present at the beginning of each FLAC file.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	MetaBlocks []*meta.Block
}

A Stream is a FLAC bitstream.

func NewStream

func NewStream(r io.ReadSeeker) (s *Stream, err error)

NewStream reads from the provided io.Reader and returns the parsed FLAC bitstream.

The basic structure of a FLAC stream is:

  • The four byte string "fLaC".
  • The StreamInfo metadata block.
  • Zero or more other metadata blocks.
  • One or more audio frames.

func Open

func Open(filePath string) (s *Stream, err error)

Open opens the provided file and returns the parsed FLAC bitstream.

Directories

Path Synopsis
Package meta contains functions for parsing FLAC metadata.
Package meta contains functions for parsing FLAC metadata.

Jump to

Keyboard shortcuts

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