Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fixes the Song repeating infinitely due to the Vocals being longer than the Instrumental #3775

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

KoloInDaCrib
Copy link
Contributor

Does this PR close any issues? If so, link them below.

3142 and at least 7 duplicate issues that I wont even bother to list

Briefly describe the issue(s) fixed.

The dastardly resyncVocals is at it again! I've simply set the endTime variable of both Vocals and Inst to the same value, specifically to the lower of the two. That way no song should be repeating infinitely I hope! This was tested on Senpai Erect, which suffered from the issue, and Thorns Erect, which didnt but I wanted to check either way

Include any relevant screenshots or videos.

2024-10-26.09-59-18.mp4

(ignore me being dogshit at the game)
oh and also i would appreciate more testing on this! it will remain as a draft for a bit since I had only tested it on two songs but feel free to take a gander!

EliteMasterEric and others added 3 commits October 11, 2024 23:57
* changelog sweep

* Resolve a few conflicts

* Resolve more conflicts

* DadBattle

* Re-add @ianharrigan

* Add links to 0.5.0

* Add links and contributors to 0.4.1 and 0.4.0

* Add links to 0.3.3 and finishing touches

* Add and polish 0.5.3 changes

* Make spacing consistent
@github-actions github-actions bot added medium A medium pull request with 100 or fewer changes haxe Issue/PR modifies game code and removed medium A medium pull request with 100 or fewer changes labels Oct 26, 2024
@KoloInDaCrib KoloInDaCrib marked this pull request as ready for review October 26, 2024 08:44
@NotHyper-474
Copy link
Contributor

I wonder if this affects issue #2921 too

@github-actions github-actions bot added the medium A medium pull request with 100 or fewer changes label Oct 26, 2024
@KoloInDaCrib
Copy link
Contributor Author

I wonder if this affects issue #2921 too

I guess? Since I made it so that the shortest audio is used to determine the end of the song, haven't even seen the issue let alone test it at all lol

@KutikiPlayz
Copy link

it might be better if you did the longest audio instead of shortest, or just cap them all at the instrumental length, cuz I can imagine a case where a composer cuts one vocal file down in length cuz they stop singing before the end of the song, and then the song ends entirely because that one file is shorter

@KoloInDaCrib
Copy link
Contributor Author

KoloInDaCrib commented Oct 26, 2024

it might be better if you did the longest audio instead of shortest, or just cap them all at the instrumental length, cuz I can imagine a case where a composer cuts one vocal file down in length cuz they stop singing before the end of the song, and then the song ends entirely because that one file is shorter

Probably, though I am unsure as to how I would go about extending the timer of the audio files without outright making the bug happen again, since longer voice files were the reason the infinite song bug happened in the first place (courtest of NotHyper for finding it out). Flixel already handled the shorter audio files via endTime variable in FlxSound.
I am of the opinion that having to do a janky solution and manually extend vocals in programs like Audacity would be better than having a chance for the bug to occur again.

And no, pausing/stopping the audio did not work. I have tried it already. It triggered resyncVocals regardless.

@moxie-coder
Copy link

I remember the original solution was to stop the vocals or just turn the volume to 0 when they ended, like seen in the Week 7 source code, but I don’t know if it truely worked well

@KutikiPlayz
Copy link

yeah if there's anything too short just stop it so it doesn't loop or anything

@EliteMasterEric EliteMasterEric added the status: pending triage The bug or PR has not been reviewed yet. label Jan 17, 2025
@EliteMasterEric EliteMasterEric changed the base branch from main to develop January 17, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
haxe Issue/PR modifies game code medium A medium pull request with 100 or fewer changes status: pending triage The bug or PR has not been reviewed yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants