Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.CARNet.hr!gregory.BNet.hr!not-for-mail From: Josip Almasi Newsgroups: comp.lang.java.programmer Subject: Re: Playing MP3 files (or streaming it) in a new thread Date: Fri, 30 May 2014 12:39:18 +0200 Organization: B.net Hrvatska d.o.o. Lines: 20 Message-ID: References: <7fc6d03b-48a3-4335-b718-c32841e044bf@googlegroups.com> NNTP-Posting-Host: 188.252.184.46 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: gregory.bnet.hr 1401446359 19636 188.252.184.46 (30 May 2014 10:39:19 GMT) X-Complaints-To: abuse@globalnet.hr NNTP-Posting-Date: Fri, 30 May 2014 10:39:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <7fc6d03b-48a3-4335-b718-c32841e044bf@googlegroups.com> Xref: csiph.com comp.lang.java.programmer:28613 Seems you're looking for Java Media Foundation with mp3 plugin. Though I'm not sure what are you talking about:) Regards... On 05/30/2014 10:38 AM, gamenovice@gmail.com wrote: > Is there an efficient way to play or stream mp3 files? I tried working it out on some existing source code, and while some methods work completely fine when I ran them in test code [as in by itself], it would cause the project code I was working with to crash. My first thought was to find a way to stream the mp3 data in a new thread and play it there, but I'm not sure how to properly go about this. > > > > > > > > > > > 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 its data in the same thread. is there any reason java operates in this manner? if there is a way to do the same for mp3s in the same thread please let me know >