Documentation ¶
Overview ¶
Package wav privides interface to PCM wave data. 8bits unsigned, 16bits signed and 32bits float are supported. samples must tight interlacing.
Index ¶
- Variables
- func Write(w io.Writer, wave Reader) (err error)
- func WriteFile(filename string, wave Reader) error
- type Block
- func (s *Block) Duration() time.Duration
- func (s *Block) Frequency() int
- func (s *Block) NumTracks() int
- func (s *Block) Read(b []byte) (n int, err error)
- func (s *Block) ReadAt(b []byte, off int64) (n int, err error)
- func (s *Block) Rewind() error
- func (s *Block) SampleType() Type
- func (s *Block) String() string
- type ReadCloser
- type Reader
- type Type
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block is PCM wave in memory
type ReadCloser ¶
ReadCloser for PCM data
type Reader ¶
type Reader interface { Read(p []byte) (n int, err error) // SampleType reporst sample's data type SampleType() Type // Frequency reports the sample frequency. i.e. 441000 Frequency() int // NumTracks reports track count NumTracks() int // Duration of the audio Duration() time.Duration }
Reader for PCM data
Click to show internal directories.
Click to hide internal directories.