Can Android.media.audiofx.Visualizer be used without having to play an audio file?
class android.media.audiofx.Visualizer has a method
public int getWaveForm (byte[] waveform)
which returns the x, y coordinates to render the audioSession waveform:
public Visualizer (int audioSession)
Can I use the Visualizer without having to play a sound file?
If not, is there such an equivalent library ?:
public int getWaveForm (byte[] waveform)
Note: The following answer is not correct even though it is marked CLOSED - Android - create a sound file form (OGG)
+3
source to share
1 answer
Yes, use it Visualizer(0)
, it will use the output set.
https://developer.android.com/reference/android/media/audiofx/Visualizer.html
0
source to share