Releases: ACrazyTown/flixel-waveform
Releases · ACrazyTown/flixel-waveform
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.waveformBuffer
property that exposes the waveform's audio buffer. - ✨ Added the
FlxWaveform.waveformOrientation
property that controls whether the waveform should be drawn horizontally (left to right) or vertically (top to bottom). - ✨ Added the
FlxWaveform.waveformChannelPadding
property that controls the padding between waveform channels when theFlxWaveform.waveformDrawMode
is 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
FlxWaveformBuffer
trying to access a property on a null Lime audio buffer. - 🛠️ Adjusted
FlxWaveform
's constructor arguments.x
andy
are now optional.width
andheight
are now mandatory.
- 🛠️ Updated the example project to include new features from this release.
- 🛠️
FlxWaveform.waveformDuration
now 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
flixel-waveform 2.0.0
2.0.0
- ✨ Added
waveformTime
andwaveformDuration
- Set
waveformDuration
to the length (in miliseconds) you want to visualize. - Set
waveformTime
to set the audio time (in miliseconds) the waveform will start at.
- Set
- 🗑️ Removed
setDrawRange()
in favor ofwaveformTime
andwaveformDuration
- ✨ Added
waveformBarSize
,waveformBarPadding
,- Allows for more customizable waveform designs!
- Increase the bar size for more blockier waveforms which are also less expensive to compute
- ✨ Added
waveformRMSColor
,waveformDrawRMS
- Allows for visualizing the RMS (root mean square) of the audio data.
- The RMS represents the average/effective loudness of audio.
- ✨ Added
waveformDrawBaseline
- Simply draws a line in the middle of the waveform to represent 0
- ✨ Added
SINGLE_CHANNEL(channel)
toWaveformDrawMode
to allow drawing a single channel across the entire waveform area. - 🛠️ Moved
flixel.addons.display.waveform.BytesExt
toflixel.addons.display.waveform._internal.BytesExt
- This was never meant to be a public class anyways...
- 🛠️ A good chunk of code was refactored, so probably quite a few bug fixes?