Documentation
¶
Index ¶
- Constants
- func FlacToWav(flacStream io.Reader, writer io.WriteSeeker) (totalBytes int, totalSamples int, sampleRate int, err error)
- func GenerateWavHeader(pcmSize int, sampleRate int, numChannels int, bitsPerSample int) []byte
- func Int32toInt24LEBytes(n int32) []byte
- func ParseWavHeader(wavStream io.Reader) (pcmSize int, sampleRate int, numChannels int, bitsPerSample int, err error)
- type WriterSeeker
Constants ¶
View Source
const (
WavHeaderSize = 44
)
Variables ¶
This section is empty.
Functions ¶
func GenerateWavHeader ¶
func Int32toInt24LEBytes ¶
Types ¶
type WriterSeeker ¶
type WriterSeeker struct {
// contains filtered or unexported fields
}
WriterSeeker is an in-memory io.WriteSeeker implementation
func (*WriterSeeker) Bytes ¶
func (ws *WriterSeeker) Bytes() []byte
func (*WriterSeeker) BytesReader ¶
func (ws *WriterSeeker) BytesReader() *bytes.Reader
BytesReader returns a *bytes.Reader. Use it when you need a reader that implements the io.ReadSeeker interface
Click to show internal directories.
Click to hide internal directories.