mp3join

package module
v0.0.0-...-d46eaee Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 3 Imported by: 3

README

MP3 Joiner (Golang Library)

Pure go library for joining mp3 files to one.

The library will read all files in memery, so it can not process big files.

Usage


joiner := mp3join.New()

// readers is the input mp3 files
for reader := range readers {
    err := j.Append(reader)
    if err != nil {
        return err
    }
}

dest := joiner.Reader()

// dest is a mp3 output reader

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Joiner

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

Joiner is a mp3 file joiner

func New

func New() *Joiner

New Create a mp3 joiner

func (*Joiner) Append

func (j *Joiner) Append(in io.Reader) error

Append join a mp3 file to the end

func (*Joiner) FileCount

func (j *Joiner) FileCount() int

FileCount is the count of files be joined

func (*Joiner) Len

func (j *Joiner) Len() int

Len is the total size of the output mp3 file

func (*Joiner) Reader

func (j *Joiner) Reader() *bytes.Reader

Reader always return a new Reader from mp3 beginning

Jump to

Keyboard shortcuts

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