Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeSoundChunk ¶
EncodeSoundChunk encodes the provided sound data into a byte array for a chunk.
Types ¶
type SoundData ¶
type SoundData interface { // SampleRate returns the amount of samples per second. SampleRate() float32 // SampleCount returns the number of samples available from this data. SampleCount() int // Samples returns the samples in the given range Samples(from, to int) []byte }
SoundData wraps the basic information about a collection of sound samples. The format is mono with usigned 8-bit PCM coding.
func DecodeSoundChunk ¶
DecodeSoundChunk decodes the data of a chunk of type SoundData.
Click to show internal directories.
Click to hide internal directories.