Versions in this module Expand all Collapse all v2 v2.1.2 Oct 14, 2025 v2.0.0 Oct 14, 2025 Changes in this version + var TestDataDir = filepath.Join(filepath.Dir(callerPath), "../testdata") + func AssertSamplesEqual(t *testing.T, expected, actual [][2]float64) + func AssertStreamerHasCorrectReturnBehaviour(t *testing.T, s beep.Streamer, expectedSamples int) + func Collect(s beep.Streamer) [][2]float64 + func CollectNum(num int, s beep.Streamer) [][2]float64 + func NewDataStreamer(data [][2]float64) (s beep.StreamSeeker) + func NewDelayedErrorStreamer(s beep.Streamer, numSamples int, err error) beep.StreamSeeker + func NewErrorStreamer(err error) beep.StreamSeeker + func NewSequentialDataStreamer(numSamples int) (s beep.StreamSeeker, data [][2]float64) + func RandomDataStreamer(numSamples int) (s beep.StreamSeeker, data [][2]float64) + func TestFilePath(path string) string + type ErrorStreamer struct + Error error + func (e *ErrorStreamer) Err() error + func (e *ErrorStreamer) Len() int + func (e *ErrorStreamer) Position() int + func (e *ErrorStreamer) Seek(p int) error + func (e *ErrorStreamer) Stream(samples [][2]float64) (n int, ok bool) + type SeekErrorStreamer struct + func NewSeekErrorStreamer(s beep.StreamSeeker, err error) *SeekErrorStreamer + func (s *SeekErrorStreamer) Err() error + func (s *SeekErrorStreamer) Len() int + func (s *SeekErrorStreamer) Position() int + func (s *SeekErrorStreamer) Seek(p int) error + func (s *SeekErrorStreamer) Stream(samples [][2]float64) (n int, ok bool)