Documentation
¶
Index ¶
- Variables
- type ErrIncorrectChunkSize
- type File
- type Reader
- func (wav Reader) FirstSampleOffset() uint32
- func (wav Reader) GetDumbReader() (r io.Reader, err error)
- func (w Reader) GetFile() File
- func (wav *Reader) GetSampleCount() uint32
- func (wav *Reader) ReadRawSample() ([]byte, error)
- func (wav *Reader) ReadSample() (n int32, err error)
- func (wav Reader) String() string
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInputToLarge = errors.New("Input too large") ErrNotRiff = errors.New("Not a RIFF file") ErrNotWave = errors.New("Not a WAVE file") ErrBrokenChunkFmt = errors.New("could not decode chunkFmt") ErrNoBitsPerSample = errors.New("could not decode chunkFmt") ErrFormatNotSupported = errors.New("Format not supported - Only uncompressed PCM currently") )
Functions ¶
This section is empty.
Types ¶
type ErrIncorrectChunkSize ¶
type ErrIncorrectChunkSize struct {
Got, Wanted uint32
}
func (ErrIncorrectChunkSize) Error ¶
func (e ErrIncorrectChunkSize) Error() string
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (Reader) FirstSampleOffset ¶
func (Reader) GetDumbReader ¶
GetDumbReader gives you a std io.Reader, starting from the first sample. usefull for piping data.
func (*Reader) GetSampleCount ¶
func (*Reader) ReadRawSample ¶
func (*Reader) ReadSample ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer encapsulates a io.WriteSeeker and supplies Functions for writing samples
func (*Writer) GetDumbWriter ¶
GetDumbWriter gives you a std io.Writer, starting from the first sample. usefull for piping data.
func (*Writer) WriteInt32 ¶
WriteInt32 writes the sample to the file using the binary package
func (*Writer) WriteSample ¶
WriteSample writes a []byte array to file without conversion
Click to show internal directories.
Click to hide internal directories.
