Documentation
¶
Index ¶
- Constants
- type Encoder
- func (e *Encoder) Bitrate() int
- func (e *Encoder) Close()
- func (e *Encoder) Encode(buf []byte) []byte
- func (e *Encoder) Flush() []byte
- func (e *Encoder) GetLametagFrame() []byte
- func (e *Encoder) ID3TagAddV2()
- func (e *Encoder) InSamplerate() int
- func (e *Encoder) InitId3Tag()
- func (e *Encoder) InitParams() int
- func (e *Encoder) Mode() int
- func (e *Encoder) NumChannels() int
- func (e *Encoder) Quality() int
- func (e *Encoder) SetBitrate(bitRate int)
- func (e *Encoder) SetInSamplerate(sampleRate int)
- func (e *Encoder) SetLowPassFrequency(frequency int)
- func (e *Encoder) SetMode(mode C.MPEG_mode)
- func (e *Encoder) SetNumChannels(num int)
- func (e *Encoder) SetQuality(quality int)
- func (e *Encoder) SetVBR(mode C.vbr_mode)
- func (e *Encoder) SetVBRAverageBitRate(averageBitRate int)
- func (e *Encoder) SetVBRQuality(quality int)
- func (e *Encoder) SetWriteId3tagAutomatic(automaticWriteTag int)
- func (e *Encoder) SetbWriteVbrTag(writeVbrTag int)
- type Handle
- type LameWriter
Constants ¶
View Source
const ( STEREO = C.STEREO JOINT_STEREO = C.JOINT_STEREO DUAL_CHANNEL = C.DUAL_CHANNEL /* LAME doesn't supports this! */ MONO = C.MONO NOT_SET = C.NOT_SET MAX_INDICATOR = C.MAX_INDICATOR BIT_DEPTH = 16 VBR_OFF = C.vbr_off VBR_RH = C.vbr_rh VBR_ABR = C.vbr_abr VBR_MTRH = C.vbr_mtrh VBR_DEFAULT = C.vbr_default MAX_FRAME_SIZE = 2880 )
View Source
const ( ABR_8 = C.ABR_8 ABR_320 = C.ABR_320 V9 = C.V9 VBR_10 = C.VBR_10 V8 = C.V8 VBR_20 = C.VBR_20 V7 = C.V7 VBR_30 = C.VBR_30 V6 = C.V6 VBR_40 = C.VBR_40 V5 = C.V5 VBR_50 = C.VBR_50 V4 = C.V4 VBR_60 = C.VBR_60 V3 = C.V3 VBR_70 = C.VBR_70 V2 = C.V2 VBR_80 = C.VBR_80 V1 = C.V1 VBR_90 = C.VBR_90 V0 = C.V0 VBR_100 = C.VBR_100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func (*Encoder) GetLametagFrame ¶
func (*Encoder) ID3TagAddV2 ¶
func (e *Encoder) ID3TagAddV2()
func (*Encoder) InSamplerate ¶
func (*Encoder) InitId3Tag ¶
func (e *Encoder) InitId3Tag()
func (*Encoder) InitParams ¶
func (*Encoder) NumChannels ¶
func (*Encoder) SetBitrate ¶
func (*Encoder) SetInSamplerate ¶
func (*Encoder) SetLowPassFrequency ¶
func (*Encoder) SetNumChannels ¶
func (*Encoder) SetQuality ¶
func (*Encoder) SetVBRAverageBitRate ¶
func (*Encoder) SetVBRQuality ¶
func (*Encoder) SetWriteId3tagAutomatic ¶
func (*Encoder) SetbWriteVbrTag ¶
type Handle ¶
type Handle *C.struct_lame_global_struct
type LameWriter ¶
type LameWriter struct {
Encoder *Encoder
EncodedChunkSize int
// contains filtered or unexported fields
}
func NewWriter ¶
func NewWriter(out io.Writer) *LameWriter
func (*LameWriter) Close ¶
func (lw *LameWriter) Close() error
Click to show internal directories.
Click to hide internal directories.