X-Received: by 10.182.250.229 with SMTP id zf5mr5928602obc.4.1401439082982; Fri, 30 May 2014 01:38:02 -0700 (PDT) X-Received: by 10.140.37.148 with SMTP id r20mr251532qgr.0.1401439082882; Fri, 30 May 2014 01:38:02 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!c1no20624669igq.0!news-out.google.com!qf4ni17772igc.0!nntp.google.com!c1no20624663igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Fri, 30 May 2014 01:38:02 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.180.122.82; posting-account=kZ6rPgoAAAAmKShCwLj_2Gx02s750w1A NNTP-Posting-Host: 71.180.122.82 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7fc6d03b-48a3-4335-b718-c32841e044bf@googlegroups.com> Subject: Playing MP3 files (or streaming it) in a new thread From: gamenovice@gmail.com Injection-Date: Fri, 30 May 2014 08:38:02 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:28611 Is there an efficient way to play or stream mp3 files? I tried working it o= ut on some existing source code, and while some methods work completely fin= e when I ran them in test code [as in by itself], it would cause the projec= t code I was working with to crash. My first thought was to find a way to s= tream the mp3 data in a new thread and play it there, but I'm not sure how = to properly go about this.=20 P.S. I notice that I do not have to do this for .wav files, and .wav has a = rather simplistic implementation in comparison to mp3 that lets me stream i= ts data in the same thread. is there any reason java operates in this manne= r? if there is a way to do the same for mp3s in the same thread please let = me know