Documentation
¶
Index ¶
- Constants
- Variables
- type Decoder
- func (d *Decoder) Close() error
- func (d *Decoder) Delete()
- func (d *Decoder) Feed(buf []byte) error
- func (d *Decoder) Format(rate int64, channels int, encodings int)
- func (d *Decoder) FormatAll()
- func (d *Decoder) FormatNone()
- func (d *Decoder) GetFormat() (rate int64, channels int, encoding int)
- func (d *Decoder) Open(file string) error
- func (d *Decoder) OpenFeed() error
- func (d *Decoder) OpenFile(f *os.File) error
- func (d *Decoder) OutBlock() int
- func (d *Decoder) Read(buf []byte) (int, error)
- func (d *Decoder) Seek(offset int16, set int) (int16, error)
- func (d *Decoder) VolumeChange(value float32) error
Constants ¶
View Source
const ( ENC_8 = C.MPG123_ENC_8 ENC_16 = C.MPG123_ENC_16 ENC_24 = C.MPG123_ENC_24 ENC_32 = C.MPG123_ENC_32 ENC_SIGNED = C.MPG123_ENC_SIGNED ENC_FLOAT = C.MPG123_ENC_FLOAT ENC_SIGNED_8 = C.MPG123_ENC_SIGNED_8 ENC_UNSIGNED_8 = C.MPG123_ENC_UNSIGNED_8 ENC_ULAW_8 = C.MPG123_ENC_ULAW_8 ENC_ALAW_8 = C.MPG123_ENC_ALAW_8 ENC_SIGNED_16 = C.MPG123_ENC_SIGNED_16 ENC_UNSIGNED_16 = C.MPG123_ENC_UNSIGNED_16 ENC_SIGNED_24 = C.MPG123_ENC_SIGNED_24 ENC_UNSIGNED_24 = C.MPG123_ENC_UNSIGNED_24 ENC_SIGNED_32 = C.MPG123_ENC_SIGNED_32 ENC_UNSIGNED_32 = C.MPG123_ENC_UNSIGNED_32 ENC_FLOAT_32 = C.MPG123_ENC_FLOAT_32 ENC_FLOAT_64 = C.MPG123_ENC_FLOAT_64 ENC_ANY = C.MPG123_ENC_ANY )
All output encoding formats supported by mpg123
Variables ¶
View Source
var EOF = errors.New("EOF")
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Contains a handle for and mpg123 decoder instance
func NewDecoder ¶
NewDecoder creates a new mpg123 decoder instance
func (*Decoder) FormatAll ¶
func (d *Decoder) FormatAll()
FromatAll enables all decoder output formats (this is the default setting)
func (*Decoder) FormatNone ¶
func (d *Decoder) FormatNone()
FormatNone disables all decoder output formats (used to specifying supported formats)
func (*Decoder) VolumeChange ¶
Click to show internal directories.
Click to hide internal directories.