Can be used without having to play an audio file?

class 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)


source to share

1 answer

Yes, use it Visualizer(0)

, it will use the output set.



All Articles