Microphone audio visualizer suggestions

Microphone audio visualizer suggestions

I’ve constructed an audio visualizer, however I do not know whether it is appropriate and could be very grateful if somebody right here might check out the code and provides me recommendations on methods to enhance it.

Example challenge are within the attachment.
It makes use of @klaus xfft lib.

Result:
ScreenRecording_03-05-202519-22-49_1-ezgif.com-resize.gif

B4XMainPage


Class_Globals:


Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
  
    Private recorder As AudioRecorder
    Private recording As Boolean

    Private AS_AudioVisualizer1 As AS_AudioVisualizer
End Sub

B4X:


Private Sub xlbl_Start_Click
    Dim FileIdentify As String = "recording.m4a"
    Dim Dir As String = File.DirTemp
    recorder.Initialize(Dir,FileIdentify, 44100, True, 16, False)
    recorder.As(NativeObject).SetField("meteringEnabled", True)
    recorder.Record
    recording = True
    Dim nRecorder As NativeObject = recorder
    Do While recording
        nRecorder.RunMethod("updateMeters", Null)
        Sleep(40)
        If recording Then...

Read extra

HI-FI News

through B4X Programming Forum https://ift.tt/J2wc7qF

March 5, 2025 at 07:50PM