[ENHANCEMENT + BUGFIX] Improve Freeplay song preview & audio handling#6961
[ENHANCEMENT + BUGFIX] Improve Freeplay song preview & audio handling#6961AnimatingLegend wants to merge 1 commit intoFunkinCrew:developfrom
Conversation
|
Found a bug where if you scroll and change difficulties the preview music won't change 2026-02-20.18-55-52.remuxed.mp4 |
This menu will forever be riddled with bugs 💔 |
|
would this fix also prevent 2 previews playing at once and the preview playing even after you entered a song? |
b95a38e to
955e246
Compare
It should! |
955e246 to
e518b83
Compare
|
another thing that happened to me was that i sat idle for way too long and it stopped playing |
Ik why that happens. its because the song previews aren't pre-cached on web. so the audio just randomly cuts out after its done instead of playing again. thank you for bringing this to my attention! |
17377e7 to
db74b3a
Compare
cfd8b8a to
81a9ea2
Compare
|
One more thing, when you unfocus the game, and then go back to the game, the inst preview restarts |
I'm pretty sure thats intentional... If the song preview continues playing when unfocused, it might cause major audio issues in the long run. |
|
I'll confirm that unfocusing doesn't restart the song preview |
|
@Huuuuuuuuunk after further examination of the bug you recently mentioned, i don't think that can be fixed. I've tried everything that i can, but it's just HTML5 in general. :/ |
For me, it did on web 0.8.3 (itch.io) |
96baddf to
6c089cb
Compare
6c089cb to
b34659d
Compare
d89d9b4 to
dc38c60
Compare
1d96b73 to
6becc88
Compare
2abd802 to
ec59410
Compare
6becc88 to
fc61e9d
Compare
fc61e9d to
72f3a5d
Compare
Closes FunkinCrew#6932, FunkinCrew#7039, FunkinCrew#6432 & FunkinCrew#7157 - Added a timer to the song preview to prevent audio overlapping. * Added `clearPreviews()` inside the timer function so old song requests get cached. * [HTML5] Implemented a specific 10 - 12 second fade-out and a 14 second window to prevent audio buffering and overlap. * [HTML5] Added a 15 second fallback for the loop timer if the web build fails to get the correct song preview length. - Made sure the menu music stops right when the song. - Fixed issue where the song previews don't update after rank animation plays.
76639e3 to
bbdce06
Compare
Linked Issues
Description
Important
THIS PR NEEDS TO BE PROPERLY MAINTAINED!!!
This PR fixes, and improves how the song previews are handled.
Changes:
clearPreviews()inside the timer function so old song requests get cached.