Versions in this module Expand all Collapse all v0 v0.1.0 Jan 18, 2025 Changes in this version + const SamplesPerMS + const SoundOutputSampleRate + type PlayerDataReader struct + func NewPlayerDataReader() *PlayerDataReader + func (p *PlayerDataReader) Read(buff []byte) (int, error) + func (p *PlayerDataReader) Seek(offset int64, whence int) (int64, error) + func (p *PlayerDataReader) SetSamples(samples []float64) + type SoundOutput struct + IsReady bool + func NewSoundOutput() (*SoundOutput, error) + func (so *SoundOutput) Close() + func (so *SoundOutput) IsPlaying() bool + func (so *SoundOutput) Pause() error + func (so *SoundOutput) Play() error + func (so *SoundOutput) SeekTo(timestampMS float64) (float64, error) + func (so *SoundOutput) SetSamples(samples []float64) + func (so *SoundOutput) Stop() error + func (so *SoundOutput) WaitUntilReady() + func (so *SoundOutput) WaitUntilStops()