Results 1 to 5 of 5
- 02-25-2010, 01:41 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
Playing multiple wave files one after the other
Hello,
I am new to java and I am trying to develop a program which can accept a string as an input. Then as per each character entered it should play corresponding wav file one after the other. I just don't understand how can I play audios one after the other.
Can anyone please help me with some sample code?
Thank you in advance.
Pallavi
- 02-25-2010, 01:58 AM #2
Senior Member
- Join Date
- Dec 2009
- Location
- Belgrade, Serbia
- Posts
- 364
- Rep Power
- 4
Few days ago similar post was made, if you use JMF this could help:
JMF player.setSource
- 02-25-2010, 04:39 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Do you know how to play a wav file using Java. Try to do that first. Then think about the other functionality. Do you have any design for this?
- 02-26-2010, 12:41 AM #4
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
Yes I was able to play audio using java. I could also append one file to another and play but couldn't understand how to play multiple files one after the other. But I guess JMF player.setSource should be useful.
Thank you so much
Pallavi
- 02-26-2010, 03:18 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Okay, now you know how to play a wav file. Then it's matter of feeding all the file names into your functionality, kind of looping. But it's not just a simple for/while loop. You want to wait to finish one play-back to start the other. Simple loop may cause lots of trouble.
First try this, store all the file names in an array and using for loop feed one by one to your player and see,
JMF is a good approach.
Similar Threads
-
Compiling Multiple Files
By Chasingxsuns in forum New To JavaReplies: 4Last Post: 02-12-2010, 01:22 PM -
Project containing multiple source files
By mr smiley in forum EclipseReplies: 0Last Post: 04-25-2009, 10:31 PM -
Playing an AudioInputStream multiple times
By pmgallardo in forum Advanced JavaReplies: 6Last Post: 03-09-2009, 04:29 PM -
multiple class files
By nemesys571 in forum EclipseReplies: 0Last Post: 06-26-2008, 01:58 AM -
Opeing multiple pdf files in different acrobat reader windows
By shweta.ahuja in forum Web FrameworksReplies: 2Last Post: 05-07-2008, 12:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks