B4J Question Waveform Graph From an Audio Files (2)

khwarizmi

Active Member
Licensed User
Longtime User
Hi all

In addition to my previous question, I would like to know how to draw a waveform graph for a specific audio file. In the previous question, the answer given to me was to draw a wave that is not related to an audio file.
I found good solutions like this on B4A, but I couldn't convert them to B4J.

Thanks in advance.
 

MarcoRome

Expert
Licensed User
Longtime User
Same class, in B4J put a Pane

Private lblC As Pane:
Private lblC As Pane

1650454987437.png
 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
This is my attempt, there are a number of bugs other than pane:

 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
Thanks MarcoRome
But I want the waveform for an audio file, as in this example:
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Tip: you should never see Pane in new code. Use B4XView instead.
I brought back Pane because if I had brought back B4xView it could be both a Label and a Pane. The label even if you declare the same as B4XView it goes into error. If instead you insert a Pane and declare the same as B4xView it is ok
 
Upvote 0
Top