Before anyone asks why vs cam, the code is public, plus i helped most of the audio backend rewrite in the mod too. :P
- Static sounds can now also seamlessly loop with AL_SOFT_loop_points extension
- Panning stereo sounds is now possible with AL_EXT_STEREO_ANGLES extension (although this was already implemented before)
- Improved streaming sounds, should fix most of the lagspike issues
- Streaming sounds should no longer regenrate if it's in the nearest timestamp (not for reversing though)
! You still can't access FlxSound.latency because of the new procedures that's not available in lime
If there's any crashes with this pls report an issue asap.
- Reworked Internal Audio to work with Streaming Vorbis Files (for now?)
- FlxSound.amplitude, FlxSound.amplitudeLeft, FlxSound.amplitudeRight, SoundChannel.leftPeak, SoundChannel.rightPeak now works. (Streamed Audio on this seems to be half-broken)
- Reworked AudioAnalyzer to work with all type of audios (hopefully) and work with Streamed Audio.
- Redo AudioSwitchFix to work in time instead of when switching states.
gosh, and all that i hope it doesnt break anything.
* OpenFL version compatibility fix
Uses var alias "__source" on 9.2.2 or "__audioSource" on latest, in case of using latest libraries.
* Revert "OpenFL version compatibility fix"
This reverts commit aa83aee5a5.
* OpenFL Compatibility fix
Uses (compiles) "__source" or "__audioSource" variable depending of the OpenFL version, in order to not break FlxSound.
* Revert "OpenFL Compatibility fix"
This reverts commit 18a9aeddf9.
* OpenFL compatibility fix (get/set var)
(suggestion by @NeeEoo) uses an auxiliary "__audioSource" variable for usage on latest OpenFL versions, in order to not break FlxSound class.