GDevelop-extensions
GDevelop-extensions copied to clipboard
New extension: AudioVisualizer
Description
This extension provides the ability to record audio from the microphone and play it back through the speakers. It also provides the ability to monitor real-time audio data from the microphone and master output, which can be used to create audio visualizations such as a spectrogram, oscilloscope, RMS/Peak meter, or other animations which respond to properties of the audio signal.
How to use the extension
The extension provides events (StartMicRecording/StopMicRecording) to record audio from the microphone using the MediaStream Recording API, and then the SaveMicRecording event pushes those recordings to the project data so that the recording can be played back through the sound manager with the PlayMicRecording event. It also provides access to real-time audio data from the microphone and the Howler master output with GetAnalyzerFrequencyData/GetAnalyzerTimeDomainData events (which use WebAudio AnalyserNode objects), to allow a user to create audio visualizations
Checklist
- [X] I've followed all of the best practices.
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
42db3c5d-d779-4c9f-b95e-b81f0f802bd7.zip