Skip to content

improve: refactor player - #250

Draft
ToddyTheNoobDud wants to merge 3 commits into
devfrom
player/rework
Draft

ToddyTheNoobDud wants to merge 3 commits into
devfrom
player/rework

Conversation

@ToddyTheNoobDud

Copy link
Copy Markdown
Member

Changes

Write here about the changes you've made

Why

Write here why you think this should be merged

Checkmarks

  • The modified endpoints have been tested.
  • Used the same indentation as the rest of the project.
  • Still compatible with LavaLink clients.

Additional information

Some things are still overfilled, not properly documented, some responsibilities remain coupled ( Event handling also triggers lyrics loading and mixer cleanup )

This is just a initial progress with no behavior change, the only thing changed was a fix for crossfade which a seek request made it fail.

All of this will be properly documented, re-organized, and will be cleaner for you and i to read, slowly making progress.

(This desing is not guaranteed to be final one, probaly we will have more conversations in whats gonna be changed etc. I'll keep updating this message whenever something changes and why it changed, so we can keep tracking)

The current player api (dev branch) should be preserved on this

Some things are still overfilled, not properly documented, some
responsibilities remain coupled ( Event handling also triggers lyrics
loading and mixer cleanup )

This is just a initial progress with no behavior change, the only thing
changed was a fix for crossfade which a seek request made it fail.

All of this will be properly documented, re-organized, and will be
cleaner for you and i to read, slowly making progress.
Group player code into tracks, audio, events, and features.
Rename transitions to fading and recovery to monitor.

Restore _realPosition() for the worker profiler. Prevent overlapping
voice reconnects while preserving session changes during handshakes.
Start pending playback once when voice becomes ready.
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