Skip to content

Recode FlxSound and update some of audio related functions/classes to 6.2.0#11

Open
Raltyro wants to merge 1 commit intoFunkinCrew:mobile/mainfrom
Raltyro:audio-rework
Open

Recode FlxSound and update some of audio related functions/classes to 6.2.0#11
Raltyro wants to merge 1 commit intoFunkinCrew:mobile/mainfrom
Raltyro:audio-rework

Conversation

@Raltyro
Copy link

@Raltyro Raltyro commented Feb 7, 2026

Need other pull requests:

List of changes:

  • [FlxSound, Variables] Adds defaultTimeScaledPitch (static), proximityEnabled, proximityPan, scrollFactor, radius, paused (read-only), completed (read-only), muted, timeScaledPitch, loopCount (read-only, from 6.2.0), loopUntil (from 6.2.0), offset, latency (read-only), amplitudes, loaded, buffer, source, onFinish, onDestroy.
  • [FlxSound, Functions] Adds unload, loadStreamed, loadFromURL, setPosition, getPosition.
  • [FlxSound] Uses lime.media.AudioSource in initialize instead of allocating openfl.media.SoundChannel every restarts.
  • [FlxSound] Changes how get_time behaves to interpolates time (use getActualTime to get the current internal time for checking desync).
  • [FlxSound] Makes amplitudes properties works.
  • [FlxSound] Make it able to seamlessly loops.
  • [FlxSound] Change autoDestroy to use kill() instead of destroy() so it can be reused.
  • [FlxSoundData] New class to make the sound caching better, reuse and destroys sounds automatically between changing states.
  • [FlxSoundFilter] New class to change or filter the sound playback in real-time such as lowpass, highpass, bandpass.
  • [SoundFrontEnd] Adds automaticDefaultDevice, deviceName, paused, onDefaultDeviceChanged, onDeviceAdded, onDeviceRemoved.
  • [AssetFrontEnd] Adds streamSoundUnsafe (from 6.2.0), streamSound (from 6.2.0), streamSoundAddExt (from 6.2.0), canStreamSound (from 6.2.0)
  • [AssetFrontEnd] Change how getting sounds to also check for every other available formats.

And many more that i can't bother to mention, because its alot.

Look at below for more information about this commit
- FunkinCrew#11
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

Comments