Documentation ¶
Index ¶
- func Length(src io.ReadSeeker) (time.Duration, error)
- func Slice(src io.ReadSeeker, cutPoints ...time.Duration) ([]io.ReadSeeker, error)
- func Splice(src io.ReadSeeker, splice map[time.Duration]io.ReadSeeker) (*ioutil.MultiReadSeeker, error)
- func Stripped(src io.ReadSeeker) (*ioutil.SectionReader, error)
- type ChannelMode
- type Emphasis
- type FrameHeader
- type Frames
- type ID3V2Header
- type Layer
- type Version
- type XingHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Slice ¶
func Slice(src io.ReadSeeker, cutPoints ...time.Duration) ([]io.ReadSeeker, error)
func Splice ¶
func Splice(src io.ReadSeeker, splice map[time.Duration]io.ReadSeeker) (*ioutil.MultiReadSeeker, error)
Take a source MP3 and insert all the splice members into it (at the specified durations)
func Stripped ¶
func Stripped(src io.ReadSeeker) (*ioutil.SectionReader, error)
Types ¶
type ChannelMode ¶
type ChannelMode byte
const ( Stereo ChannelMode = iota JointStereo DualChannel SingleChannel )
type FrameHeader ¶
type FrameHeader struct { Version Version Layer Layer Protection bool Bitrate int SampleRate int Pad bool Private bool ChannelMode ChannelMode IntensityStereo bool MSStereo bool CopyRight bool Original bool Emphasis Emphasis Size int64 Samples int Duration time.Duration }
func (*FrameHeader) Parse ¶
func (this *FrameHeader) Parse(bs []byte) error
type Frames ¶
type Frames struct {
// contains filtered or unexported fields
}
func (*Frames) Header ¶
func (this *Frames) Header() *FrameHeader
type ID3V2Header ¶
func (*ID3V2Header) Parse ¶
func (this *ID3V2Header) Parse(bs []byte) error
type XingHeader ¶
type XingHeader struct {
Frames, Bytes, Quality int
}
func (*XingHeader) Parse ¶
func (this *XingHeader) Parse(src []byte) bool
Parse an Xing header from the first frame of an mp3
Click to show internal directories.
Click to hide internal directories.