Documentation ¶
Index ¶
- type AlacBox
- type FormatDecoder
- type FormatEncoder
- type FrameDecoder
- func (e *FrameDecoder) Close()
- func (e *FrameDecoder) GetBitDepth() int
- func (e *FrameDecoder) GetChannels() int
- func (e *FrameDecoder) GetInputSize() int
- func (e *FrameDecoder) GetSampleRate() int
- func (e *FrameDecoder) GetSamplesPerPacket() int
- func (e *FrameDecoder) ReadPacket(data []byte) (inputBytesUsed int, pcm []byte)
- type FrameEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatDecoder ¶
type FormatDecoder struct {
// contains filtered or unexported fields
}
func NewFormatDecoder ¶
func NewFormatDecoder(reader io.Reader) *FormatDecoder
func (*FormatDecoder) GetBitDepth ¶
func (d *FormatDecoder) GetBitDepth() int
func (*FormatDecoder) GetChannels ¶
func (d *FormatDecoder) GetChannels() int
func (*FormatDecoder) GetSampleRate ¶
func (d *FormatDecoder) GetSampleRate() int
func (*FormatDecoder) Read ¶
func (d *FormatDecoder) Read() (buf []byte)
type FormatEncoder ¶
type FormatEncoder struct {
// contains filtered or unexported fields
}
func NewFormatEncoder ¶
func (*FormatEncoder) Flush ¶
func (e *FormatEncoder) Flush()
func (*FormatEncoder) Write ¶
func (e *FormatEncoder) Write(pcm []byte)
type FrameDecoder ¶
type FrameDecoder struct {
// contains filtered or unexported fields
}
func NewFrameDecoder ¶
func NewFrameDecoder(magicCookie []byte) *FrameDecoder
func (*FrameDecoder) Close ¶
func (e *FrameDecoder) Close()
func (*FrameDecoder) GetBitDepth ¶
func (e *FrameDecoder) GetBitDepth() int
func (*FrameDecoder) GetChannels ¶
func (e *FrameDecoder) GetChannels() int
func (*FrameDecoder) GetInputSize ¶
func (e *FrameDecoder) GetInputSize() int
func (*FrameDecoder) GetSampleRate ¶
func (e *FrameDecoder) GetSampleRate() int
func (*FrameDecoder) GetSamplesPerPacket ¶
func (e *FrameDecoder) GetSamplesPerPacket() int
func (*FrameDecoder) ReadPacket ¶
func (e *FrameDecoder) ReadPacket(data []byte) (inputBytesUsed int, pcm []byte)
type FrameEncoder ¶
type FrameEncoder struct {
// contains filtered or unexported fields
}
func NewFrameEncoder ¶
func NewFrameEncoder(sampleRate, channels, bitDepth int, fastMode bool) *FrameEncoder
func (*FrameEncoder) Close ¶
func (e *FrameEncoder) Close()
func (*FrameEncoder) GetInputSize ¶
func (e *FrameEncoder) GetInputSize() int
func (*FrameEncoder) GetMagicCookie ¶
func (e *FrameEncoder) GetMagicCookie() []byte
func (*FrameEncoder) GetSamplesPerPacket ¶
func (e *FrameEncoder) GetSamplesPerPacket() int
func (*FrameEncoder) WritePacket ¶
func (e *FrameEncoder) WritePacket(pcm []byte) []byte
Click to show internal directories.
Click to hide internal directories.