Skip to content

v-pukman-gd/godot-audio-waveform-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Godot Engine Audio Waveform Module

This is Godot Engine custom module based on the engine internal waveform preview code.

It copies original AudioStreamPreview and AudioStreamPreviewGenerator C++ classes and makes it available in GDScript.

Supported Godot version

It's compatible with Godot 3.4

Installing

If you don't have Godot source yet, download it from repo
git clone https://github.com/godotengine/godot.git

Checkout to supported branch git checkout 3.4

Copy the folder audio_stream_preview_generator to Godot modules folder

Recompile the engine (change the platform to yours)
scons platform=osx arch=arm64 --jobs=$(sysctl -n hw.logicalcpu)

And run the new build:
./bin/godot.osx.tools.arm64

Usage example

In opened project manager window, choose the project folder audio_wave_test

Look to audio_waveform.gd script. It contains an example of drawing a waveform.

Run the project.

Have fun!