Notification sound added. Docs updated.

This commit is contained in:
Storm Dragon committed 2026-11-07 00:27:44 -05:00
1 parent 4c9a267897
commit 81cc630319
29 files changed
+845 -57

No files matched your search

+10 -9
View File
@@ -27,15 +27,16 @@ type fakeBackend struct {
func fake_backend() *fakeBackend {
return &fakeBackend{errors: make(chan error, 1), closed: make(chan struct{})}
}
func (f *fakeBackend) Play(presentation.Cue) bool { f.plays.Add(1); return true }
func (f *fakeBackend) Play_progress(float64) bool { return true }
func (f *fakeBackend) Play_indentation(int) bool { return true }
func (f *fakeBackend) Discard_progress() {}
func (f *fakeBackend) Clear_progress() {}
func (f *fakeBackend) Set_volume(volume float64) { f.volume.Store(math.Float64bits(volume)) }
func (f *fakeBackend) Errors() <-chan error { return f.errors }
func (f *fakeBackend) Finish(context.Context) error { return nil }
func (f *fakeBackend) Close() { f.once.Do(func() { close(f.closed) }) }
func (f *fakeBackend) Play(presentation.Cue) bool { f.plays.Add(1); return true }
func (f *fakeBackend) Play_wait(context.Context, presentation.Cue) error { f.plays.Add(1); return nil }
func (f *fakeBackend) Play_progress(float64) bool { return true }
func (f *fakeBackend) Play_indentation(int) bool { return true }
func (f *fakeBackend) Discard_progress() {}
func (f *fakeBackend) Clear_progress() {}
func (f *fakeBackend) Set_volume(volume float64) { f.volume.Store(math.Float64bits(volume)) }
func (f *fakeBackend) Errors() <-chan error { return f.errors }
func (f *fakeBackend) Finish(context.Context) error { return nil }
func (f *fakeBackend) Close() { f.once.Do(func() { close(f.closed) }) }
func wait_player(t *testing.T, player *Player, backend *fakeBackend) {
t.Helper()