Commit Graph
19 Commits
Author SHA1 Message Date
RaltyandGitHub a33f8a4e6d Streamed Music (Rewritten Internal Audio) PR Merge
- Reworked Internal Audio (FlxSound, NativeAudioSource, SoundChannel) to work with Streaming Vorbis Files (for now?)
  - FlxSound.amplitude now works. (This is implemented to avoid the lagspike on using the AudioAnalyzer on streamed audios as possible)
  - Implemented loopTime, and endTime into the internal instead of FlxSound for better looping (only for Streamed Audio)
  - Implemented Interpolation into time (only in FlxSound specifically, does not affect the actual internal audio classes)
  - Implemented variables such as offset, muted, pan, proximityPan, channels, stereo, loaded, streamed, onFinish (to seperate complete callback from looping callback), timeScaleBased (for pitch based in FlxG.timeScale)

- Reworked AudioAnalyzer to work much more faster with all type of audios (hopefully) and work with Streamed Audio. (NOTE: Using it on Streamed Audio is pretty expensive as it constantly seeking each calls, unless if the next time using it is the expected time decoder to seek to.)
- Redo AudioSwitchFix to work in time instead of when switching states.
- Improved the off-sync vocals detection
- Implemented LoopTime, EndTime, Offset into Ini's Music Assets
2025-07-15 01:41:10 +07:00
Ralty f2a5719c57 Whoops 2025-07-15 01:39:10 +07:00
Ralty bffb147cc2 Polish AudioAnalyzer & fix 8-bit detection 2025-07-15 01:23:52 +07:00
Ralty 7f3d976ac6 Fix FlxSound not completing correctly, & callbacks 2025-07-15 01:22:53 +07:00
Ralty a708c204e7 Little fix on AudioAnalyzer 2025-07-13 23:58:14 +07:00
Ralty 17ffdcd6ef Fix AudioAnalyzer 2025-07-13 23:41:41 +07:00
Ralty a3ae8a70d4 Allow AudioAnalyzer to have seperate outputs 2025-07-13 22:03:11 +07:00
Ralty 2ead99cdf4 Fix Mismatching Audio Streamed Buffer Size 2025-07-13 21:10:42 +07:00
Ralty e669eb32af Stable Reworked Audio
- 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.
2025-07-13 19:56:26 +07:00
Ralty 3f19afd66d EndTime, Offset in Ini's Music 2025-07-12 15:59:09 +07:00
Ralty 89f862b42c Better Buffer Streamed Audio Management 2025-07-12 15:58:10 +07:00
Ralty 96d60cfe8c Streamed Vocals? 2025-07-12 02:34:55 +07:00
Ralty 5187f4a438 Register Endianness, stuff, add option to toggle 2025-07-12 02:27:12 +07:00
Ralty 8b5314d66c quick fix 2025-07-12 00:46:31 +07:00
Ralty 6834216878 Disable __updatePeaks & More work in audiosource 2025-07-12 00:24:25 +07:00
Ralty 80bc6506b9 Rewrite Internal Audio Source & Fix AudioSwitchFix 2025-07-11 10:59:26 +07:00
Ralty aa5cf639e8 Fix Resyncing 2025-07-10 16:16:55 +07:00
Ralty 6cb90a66c9 FlxSound & internal rewrite & Streamed Music 2025-07-10 15:37:35 +07:00
RaltyandGitHub e4baf51e06 Fix Inconsistency in Sustain Input (#663)
Make player sustains the same as cpu sustains
2025-07-02 11:40:56 -04:00