Skip to content

[FEATURE] Ability to use Raw Times (ms) instead of percentages#5

Open
KoloInDaCrib wants to merge 2 commits intoFunkinCrew:mainfrom
KoloInDaCrib:raw-times
Open

[FEATURE] Ability to use Raw Times (ms) instead of percentages#5
KoloInDaCrib wants to merge 2 commits intoFunkinCrew:mainfrom
KoloInDaCrib:raw-times

Conversation

@KoloInDaCrib
Copy link
Copy Markdown

@KoloInDaCrib KoloInDaCrib commented Mar 11, 2025

the ms-using functions are separate from the percentage ones to not break anything

}

// on native, it will always be an ogg file, although eventually we might want to add WAV?
Assets.loadBytes(path).onComplete(function(data:openfl.utils.ByteArray)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This always loads the whole file. The intent of FlxPartialSound is to save memory and load times by only streaming part of the audio file. With this, you load a 3 minute audio file just to play 15 seconds of it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but the function to load the future with the sound by using percentages also uses the same system - one way or another there would have to be all bytes being loaded for the partial sound, since loading bytes doesn't use cache

I've changed the system a bit to load the audio instead (which does use cache and every sound should be precached iirc) and to use that as a base instead of loading bytes again, however I'll leave this open

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, on further analysis, the original also loaded the whole file, hmmm...
This might need further review I think.

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