Repository navigation
flixel-waveform 2.1.0
2.1.0
- ✨ Added support for making waveforms from streamed sounds.
- No additional work on the user side needs to be done. If you pass a streamed sound to a
FlxWaveform.loadDataFrom...()method, it will automatically detect and load it. - Use the
FlxWaveformBuffer.fromVorbisFile()method to create an audio buffer from alime.media.vorbis.VorbisFile.
- No additional work on the user side needs to be done. If you pass a streamed sound to a
- ✨ Added the
FlxWaveform.waveformBufferproperty that exposes the waveform's audio buffer. - ✨ Added the
FlxWaveform.waveformOrientationproperty that controls whether the waveform should be drawn horizontally (left to right) or vertically (top to bottom). - ✨ Added the
FlxWaveform.waveformChannelPaddingproperty that controls the padding between waveform channels when theFlxWaveform.waveformDrawModeis set toSPLIT_CHANNELS. - ✨ Added new features to the playground sample.
- 🛠️ Fixed waveform appearance.
- Previously the waveform would only store the peak value of an audio segment. This caused the waveform to always appear symmetrical. As part of the internal data rework, this has now been corrected and the waveform now keeps track of both the minimum and maximum values of a segment. As a side effect, this also makes the waveform accurate when visualizing very small durations.
- 🛠️ Fixed waveform desync.
- 🛠️ Fixed crash due to
FlxWaveformBuffertrying to access a property on a null Lime audio buffer. - 🛠️ Adjusted
FlxWaveform's constructor arguments.xandyare now optional.widthandheightare now mandatory.
- 🛠️ Updated the example project to include new features from this release.
- 🛠️
FlxWaveform.waveformDurationnow defaults to 5 seconds (5000ms) instead of 0. - 🛠️ Various documentation adjustments.
- 🛠️ Fixed weird crop on the showcase image.
Commits since previous version: 2.0.0...2.1.0