Skip to content

Add Player.Pause, Player.Progress and wav.Decoder.Frames - #7

Merged
deadprogram merged 1 commit into
mainfrom
tinypod
Oct 11, 2026
Merged

deadprogram merged 1 commit into
mainfrom
tinypod

Conversation

@deadprogram

@deadprogram deadprogram commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

This adds three small APIs:

  • Player.Pause and Player.Paused pause and resume playback in the middle of a song. While paused, the player disables the output.
  • Player.Progress returns the elapsed and total time of the current or last stream.
  • wav.Decoder.Frames returns the number of sample frames in the data chunk.

tinypod, an iPod classic style music player, uses them. tinypod was first an example in this PR. It is now in its own repo, and the README links to it.

Unit tests cover Pause, Progress and Frames.

Pause and resume playback mid song, and report elapsed and total time
for a progress bar. wav.Decoder.Frames returns the frame count of the
data chunk. Link to tinypod, which uses them.
@deadprogram deadprogram changed the title Add tinypod, an iPod classic style player example Add Player.Pause, Player.Progress and wav.Decoder.Frames Oct 11, 2026
@deadprogram
deadprogram merged commit 3dddba4 into main Oct 11, 2026
1 check passed
@deadprogram
deadprogram deleted the tinypod branch October 11, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant