Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28611 > unrolled thread

Playing MP3 files (or streaming it) in a new thread

Started bygamenovice@gmail.com
First post2014-05-30 01:38 -0700
Last post2014-05-30 12:39 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Playing MP3 files (or streaming it) in a new thread gamenovice@gmail.com - 2014-05-30 01:38 -0700
    Re: Playing MP3 files (or streaming it) in a new thread Josip Almasi <joe@vrspace.org> - 2014-05-30 12:39 +0200

#28611 — Playing MP3 files (or streaming it) in a new thread

Fromgamenovice@gmail.com
Date2014-05-30 01:38 -0700
SubjectPlaying MP3 files (or streaming it) in a new thread
Message-ID<7fc6d03b-48a3-4335-b718-c32841e044bf@googlegroups.com>
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

[toc] | [next] | [standalone]


#28613

FromJosip Almasi <joe@vrspace.org>
Date2014-05-30 12:39 +0200
Message-ID<lm9n4n$j5k$1@gregory.bnet.hr>
In reply to#28611
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
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web