Documentation ¶
Overview ¶
Package wav provides WAV (RIFF) decoder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream is a decoded audio stream.
func Decode ¶
Decode decodes WAV (RIFF) data to playable stream.
The format must be 1 or 2 channels, 8bit or 16bit little endian PCM. The format is converted into 2 channels and 16bit.
Decode returns error when decoding fails or IO error happens.
Decode automatically resamples the stream to fit with the audio context if necessary.
Click to show internal directories.
Click to hide internal directories.