Skip to content

Comments

new CassetteTape API#345

Open
sh95014 wants to merge 2 commits intoaudetto:masterfrom
sh95014:cassette-api
Open

new CassetteTape API#345
sh95014 wants to merge 2 commits intoaudetto:masterfrom
sh95014:cassette-api

Conversation

@sh95014
Copy link

@sh95014 sh95014 commented Jan 13, 2026

  • deprecate TapeInfo.size and pos, replace with duration and position in milliseconds
  • add playbackRate (for potential future enhancement of accelerated tape loading)
  • add playbackRateChangeCallback to avoid client polling
  • remove myIsPlaying since it is redundant with myBaseCycles != -1
  • update sdlsettings for new API

notes:

  • I deprecated instead of deleting size and pos to avoid breaking any non-sa2 clients
  • I used a callback to avoid having to touch FrameBase

see #338

- deprecate TapeInfo.size and pos, replace with duration and position in milliseconds
- add playbackRate (for potential future enhancement of accelerated tape loading)
- add playbackRateChangeCallback to avoid client polling
- remove myIsPlaying since it is redundant with myBaseCycles != -1
- update sdlsettings for new API
@audetto
Copy link
Owner

audetto commented Jan 15, 2026

Do we really need the deprecation? Who is using it?

@audetto
Copy link
Owner

audetto commented Jan 15, 2026

playbackRateChangeCallback is only called with 0 or 1. Is a double the real best argument?

@sh95014
Copy link
Author

sh95014 commented Jan 15, 2026

Re deprecation: I just wasn’t sure if any of your other frontends are using it. If it’s just sa2 then they can be deleted.

Re playbackRate: If we somehow implement accelerated tape loading in the future, the playbackRate might not be an integer. Probably overthinking it.

@audetto
Copy link
Owner

audetto commented Jan 15, 2026

OK, just remove the deprecated things.

@sh95014
Copy link
Author

sh95014 commented Jan 26, 2026

@audetto removed the deprecated fields

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.

2 participants