Welcome to Dream.In.Code
Become a Java Expert!

Join 150,356 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,889 people online right now. Registration is fast and FREE... Join Now!




seeking into mp3 file

 
Reply to this topicStart new topic

seeking into mp3 file

po0oker
27 Jan, 2008 - 01:48 PM
Post #1

New D.I.C Head
*

Joined: 27 Jan, 2008
Posts: 5

hi there .

i am working on a project that requires me to make a random access (seeking ) in java , i am have trouble in my finding my way out , i would like to ask for any sample code to make the random access or any information of whats going on behind the scene

Thank you

User is offlineProfile CardPM
+Quote Post

GWatt
RE: Seeking Into Mp3 File
27 Jan, 2008 - 07:22 PM
Post #2

human inside
Group Icon

Joined: 1 Dec, 2005
Posts: 2,360



Thanked: 31 times
Dream Kudos: 500
My Contributions
So, does it have to be an mp3 file?
You should probably check out the javadoc and check out the java.io package.
User is online!Profile CardPM
+Quote Post

po0oker
RE: Seeking Into Mp3 File
28 Jan, 2008 - 06:04 AM
Post #3

New D.I.C Head
*

Joined: 27 Jan, 2008
Posts: 5

actually i am working on the javazoom decoders to play the music and make a random access , at the moment i am able to run the music but cannot figure out the right steps and method to make the random access , i have been looking for any sample that explains it but i couldn't find any . if anyone here have done it before plz i need help

This post has been edited by po0oker: 28 Jan, 2008 - 06:04 AM
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Seeking Into Mp3 File
28 Jan, 2008 - 06:19 AM
Post #4

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
I think java.io.RandomAccessFile is what you are looking for.
User is offlineProfile CardPM
+Quote Post

po0oker
RE: Seeking Into Mp3 File
28 Jan, 2008 - 06:29 AM
Post #5

New D.I.C Head
*

Joined: 27 Jan, 2008
Posts: 5

dose it work with mp3 ?
User is offlineProfile CardPM
+Quote Post

GWatt
RE: Seeking Into Mp3 File
28 Jan, 2008 - 06:35 AM
Post #6

human inside
Group Icon

Joined: 1 Dec, 2005
Posts: 2,360



Thanked: 31 times
Dream Kudos: 500
My Contributions
Are you trying to play an mp3 and be able to, say, go back 30 seconds?
User is online!Profile CardPM
+Quote Post

po0oker
RE: Seeking Into Mp3 File
28 Jan, 2008 - 06:55 AM
Post #7

New D.I.C Head
*

Joined: 27 Jan, 2008
Posts: 5

i am trying to play an mp3 in java and create an interface that makes me able to go forward 30 seconds for example or backward
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Seeking Into Mp3 File
28 Jan, 2008 - 07:07 AM
Post #8

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
Are you looking for an mp3 decoder, or are you writing one?


User is offlineProfile CardPM
+Quote Post

po0oker
RE: Seeking Into Mp3 File
28 Jan, 2008 - 08:43 AM
Post #9

New D.I.C Head
*

Joined: 27 Jan, 2008
Posts: 5

i have one , i am working on the javazoom decoder ,, all i need is a piece of codes that does the random access and where exactly i should add it
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Seeking Into Mp3 File
28 Jan, 2008 - 08:52 AM
Post #10

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
What I posted does random access on any binary file - however you must know where the frame starts, because I think your decoder would choke if you feed it a broken frame.
I can't tell you where to put it exactly without seeing your code, but I guess you should be able to know it if you are developing it. Are you sure btw that your decoder does not support seeking?

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:50PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month