Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type L8SoundData ¶
type L8SoundData struct {
// contains filtered or unexported fields
}
L8SoundData is a in-memory sound buffer.
func NewL8SoundData ¶
func NewL8SoundData(sampleRate float32, samples []byte) *L8SoundData
NewL8SoundData returns a new sound data instance with the given data.
func (*L8SoundData) SampleCount ¶
func (data *L8SoundData) SampleCount() int
SampleCount returns the count of samples available in this data.
func (*L8SoundData) SampleRate ¶
func (data *L8SoundData) SampleRate() float32
SampleRate returns the amount of samples for one second.
func (*L8SoundData) Samples ¶
func (data *L8SoundData) Samples(from, to int) []byte
Samples returns the samples in the given range
Click to show internal directories.
Click to hide internal directories.