2

i'm trying to make a java sound visualizer, but I have absolutely no idea on how to get the bytes from the audio extracted, immediately after they are procressed in real-time. I could synchronize the program with an wav file, but that is not what I want to do, I want to generate the sound with the program, then play it, without saving it anywhere.

Thanks for the help!

  • What platform? Desktop Java? Web applet? Android? – Multimedia Mike Dec 22 '13 at 07:13
  • Windows, desktop java and/or applet, not android –  Dec 22 '13 at 08:11
  • Your question leaves me a bit confused: Are you trying to visualize audio that's being played from, e.g., a WAV or MP3 file ("how to get the bytes from the audio extracted"), or do you want to play and visualize programmatically generated data ("I want to generate the sound with the program")? – Multimedia Mike Dec 22 '13 at 08:47
  • I want to play and visualize the programatically generated data –  Dec 22 '13 at 12:28

1 Answers1

7

This article can help you understand the structure of sound files: Build an Audio Waveform Display

Profilüfter
  • 81
  • 2
  • 12
Pievis
  • 1,954
  • 1
  • 22
  • 42
  • 1
    Your link died, any chance you have something now? It would be good if you could improve your answer – Andrej Oct 23 '18 at 07:14
  • 3
    https://web.archive.org/web/20090221151851/http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/ – Alde Feb 19 '19 at 03:37