Looping AudioInputStream of music

Discussion in 'Java' started by Ed Chen, May 26, 2004.

  1. Ed Chen

    Ed Chen Guest

    Currently, I'm using the Ogg Vorbis decoder for the AudioInputStream,
    but it seems it can only play once and not loop. Anyone know how to
    loop an AudioInputStream?
    Ed Chen, May 26, 2004
    1. Advertisements

  2. Read all bytes from the InputStream and buffer them into an array. Then
    send the array to your playback line and again and again and again and...
    Boudewijn Dijkstra, May 27, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.