Looping mp3 and other audio

Some of my classmates and I are doing a game for our 2.semester project.
We want the game to have a "backround-sound", like an mp3 that just repeats it self.
We installed the Java Media Framework 2.1.1e and used some of the code we found in the forums to come up with this:
/* MP3Player.java
* Created on 1. februar 2006, 23:20
* @author Leviathan
import javax.media.*;
import java.io.*;
public class MP3Player extends Thread
    public void test(String url)
        try
            MediaLocator ml = new MediaLocator("file:"+url);
            final Player player = Manager.createPlayer(ml);
            player.addControllerListener(new ControllerListener()
                public void controllerUpdate(ControllerEvent event)
                    if(event instanceof EndOfMediaEvent)
                        player.stop();
                        player.close();
            player.realize();
            player.start();
        catch(Exception e)
            e.printStackTrace();
    public static void main(String[] args)
        MP3Player mp3 = new MP3Player();    
        mp3.test("c:\\documents and settings\\Dragon\\desktop\\drinking_song.mp3");
}The problem is, we can't make it repeat the audiofile, and we can't find the API Specification for JMF.
Does anyone know a way to loop the audiofile or where we can find the API?
Thanks in advance

Just log on, enter the forum that's relevant to you query, and pres the "post new topic" button at the top of the screen.

Similar Messages

  • How can i hide extension .mp3 and others

    i want to hide extension .mp3 and other extensions . Can you help me?

    Hi djandyes,
    Globally showing and hiding file extensions is set by a Finder Preference.
    Show or hide filename extensions - Mac Help
    For all files
    If you select “Show all filename extensions,” all extensions are shown, even for files that have “Hide extension” selected. If you deselect “Show all filename extensions,” then file extensions are shown or hidden based on their individual “Hide extension” settings.
    Choose Finder > Preferences, then click Advanced.
    Select or deselect “Show all filename extensions.”
    Thank you for thinking of Apple Support Communities for your support needs.
    Nubz

  • Does apple store the .mp3 and other files I've purchased 'in the cloud'?

    Does apple store the .mp3 and other files I've purchased 'in the cloud'?  I had to restore my PC and forgot to back them up.  If not, I assume I would potentially need to purchase them again, right?  Please help.
    THIS IS REGARDING THE iTUNES Client Application V10.9.
    Thank You,
    The Technology Diva

    ''rajkumar05 [[#question-1049891|said]]''
    <blockquote>
    there is a problem with the firefox browser in my firefox os 1.3 intex cloud fx since i am not able to download any files using it.
    there are no other browsing application in the marketplace to, so help is required
    thanks.
    </blockquote>
    Hello Rajkumar,
    You can easily download media file. Follow these instructions: [http://mzl.la/1xKvGNs]

  • How to create waveform diagram for mp3(or other audio file)

    Hi!
    I googled for several days, but I steel can't solve problem.
    I need create waveform diagram (in jpeg, png or any other graphics formats) for audio files in console.
    Waveform diagram look like editor area in sound editors programs.
    like this 
    Does anybody can help me?
    Thank you!

    if it is impossible to understand... maybe my English is too bad)
    i need console command f.e.
    $ superConverter mysong.mp3  diagram.jpg
    and result file diagram.jpg contains waveform diagram for mysong.mp3.

  • Converting "FLAC" and other Audio Format files from Vuze to iTunes

    Good afternoon. I have a Mac Book computerthat I purchased about two years ago.  I have ITunes loaded on mycomputer. I use Vuze as a software program to download music and video toITunes.  However, it appears that iTunes will not concert "FLAC"and other formats of audio from Vuze. Can anyone recommend what free softwaresoftware program is preferable to use to convert the "FLAC" and otheraudio formats from Vuze to use in iTunes?  Thank you in advance for anyassistance you can provide concerning this issue.

    I have used xACT in the past, and I now use Max for all my FLAC conversion needs. If you need to tag the FLAC files before conversion, Tag is basic but good.
    For conversion inside iTunes you might want to check out Quick Convert from Doug's AppleScripts.

  • 120GB of music and other audio with nowhere to put it.

    I have a ton of music and various audio but no hard drive space on my iBook. All my music is stored on external hard drives. I want to get a computer to use solely for iTunes. I don't expect much sympathy, but is there a cheap PC I could get or should I stick with a Mac.

    Off the top of my head, two suggestions:
    1. Have you considered purchasing a used iBook/MacBook? Personally, I would rather have one of those than a new, budget-priced Windows PC; especially if I were purchasing the thing solely for use with iTunes. The Windows version does not integrate with the operating system as well as the Mac version does, for obvious reasons.
    2. What Meg said. A terabyte internal hard drive will give you plenty of space, and is a lot cheaper than a second computer.

  • Splitting an MP3 or other audio format files

    Hi, guys. I dont even know if I am discussing this under the right category but I hope someone can help. I have a Mac Pro, which I just acquired. I have been used to Window PCs all my life. I am trying to see if I can if there is a way I can split a large audio file into a smaller clip on the Mac. I dont even mind if this means I have to download an additional program. I am trying to use an audio track I already converted into an MP3 version as a ringtone on my phone. But I dont like the was the song starts from the beggining. I am trying to create a 1-minute audio clip out of the long track and use that. I'll appreciate all the advice I can get.

    answered.

  • Import MP3 and AIF Audio Slowing Down

    Hello All,
    I am trying to create a podCast of my Temple's weekly service. The sound system saves the audio to a Compact Flash as a MP3 file. I had wanted to use GB3 to add graphics and publish with iWeb but I am having a strange problem.
    When I add the existing sound file to a new podCast template, the audio slows down about 5-10%. I've tried to add the file through iTunes/Media Browser and I have tried converting the file to an AIFF in QT7 then drop-and-drag to a new track. In both cases the slowing of the audio acquired.
    I tried adding additional new audio via internal Mic and it plays normally. I have a iMac G5 with 1GB RAM...so I don't believe it's my compture.
    Help! Please!
    Thanks in advance for suggestions and solutions...
    David

    If it slows and drops in pitch:
    http://www.thehangtime.com/gb/gbfaq2.html#toofast

  • NEED ADVICES FOR RME HDSPe AIO and (other audio devices)

    Hi all! i was wondering if someone have some experience with RME HDSPe AIO card..
    I'm thinking about buying one but is the latency for software monitoring (in logic pro) is good ?
    any issues on OS X 10.6.5?
    Here's my situation..at the moment i'm using the motu 896 hd , everyone knows that this unit is a kick *** for low latency but for converters it is what you get for the money.
    I have 2 good pre amps , the Millennia stt-1 and the Amek channel in a box and most of the time I only need 2 channels for live recording.So i'm looking for an interface ,or an audio card ,that will give me good convertion with ultra low latency, i mean like the motu , no problem at 32 buffers when recording my guitar straight to logic with some plugins on a strip.
    I figured out some alternatives:
    -Metric Halo ULN-2:
    a bit expensive, with some good pre amps (that i don't need), and it's a firewire interface so what about latency on this unit? and are the converters really worth the extra 1000$ that i will have to spend compare to the RME AIO?
    Apogee Duet:
    at the moment , i have this unit at work (really cool sound) but i will bring it home to do more test, but still for latency , motu 896 hd is better...what about the converters of the Duet compare to the RME AIO ?
    Apogee Ensemble:
    I forgot the whole idea of getting one since I read in this forum that the latency was painfull..i was really disapointed cause it will have work perfectly with my euphonix mc control..
    And I know that it would have been a waste of inserts, in my situation...but still i would have paid for it .
    RME BABYFACE:
    too recent to have a clue if it worth the $ but it seems like a good unit.(and compare to the Duet?)
    So the things that are important to me is the latency and great converters..I don't mind if I have to spend extra money and having inserts that i'm only using when i record bands (which is not my primal goal)
    At the moment my phocus is on having 2 inserts top quality converters with a good clock, 2 outputs for my monitor and headphone.
    I would really like to know what you're all thinking and specially if someone had experience with the RME HDSe AIO!
    thanks ! Pascal

    Hi all! i was wondering if someone have some experience with RME HDSPe AIO card..
    I'm thinking about buying one but is the latency for software monitoring (in logic pro) is good ?
    any issues on OS X 10.6.5?
    Here's my situation..at the moment i'm using the motu 896 hd , everyone knows that this unit is a kick *** for low latency but for converters it is what you get for the money.
    I have 2 good pre amps , the Millennia stt-1 and the Amek channel in a box and most of the time I only need 2 channels for live recording.So i'm looking for an interface ,or an audio card ,that will give me good convertion with ultra low latency, i mean like the motu , no problem at 32 buffers when recording my guitar straight to logic with some plugins on a strip.
    I figured out some alternatives:
    -Metric Halo ULN-2:
    a bit expensive, with some good pre amps (that i don't need), and it's a firewire interface so what about latency on this unit? and are the converters really worth the extra 1000$ that i will have to spend compare to the RME AIO?
    Apogee Duet:
    at the moment , i have this unit at work (really cool sound) but i will bring it home to do more test, but still for latency , motu 896 hd is better...what about the converters of the Duet compare to the RME AIO ?
    Apogee Ensemble:
    I forgot the whole idea of getting one since I read in this forum that the latency was painfull..i was really disapointed cause it will have work perfectly with my euphonix mc control..
    And I know that it would have been a waste of inserts, in my situation...but still i would have paid for it .
    RME BABYFACE:
    too recent to have a clue if it worth the $ but it seems like a good unit.(and compare to the Duet?)
    So the things that are important to me is the latency and great converters..I don't mind if I have to spend extra money and having inserts that i'm only using when i record bands (which is not my primal goal)
    At the moment my phocus is on having 2 inserts top quality converters with a good clock, 2 outputs for my monitor and headphone.
    I would really like to know what you're all thinking and specially if someone had experience with the RME HDSe AIO!
    thanks ! Pascal

  • Include media file (flash swf, mp3 and other)

    Hi. When I open pdf file with adobe digital edition I not able to view media page. Media swf flash and mp3 player. With adobe reader i read it but with adobe digital editions i don't able. Why? Can you help me for create pdf with media compatible for adobe digital editions. Thanks

    Just log on, enter the forum that's relevant to you query, and pres the "post new topic" button at the top of the screen.

  • Mac Speech Dictate and other Audio Recording Questions

    Thanks again for this great resource. I have a Macbook Pro, my first issue is I want to record audio from my stereo system, through the headphone output. I can't use the cables because I have an AV splitter, I have a DVD, Satellite, TV, all going through the splitter and to the stereo system, so I need to record stuff to my Macbook Pro from the stereo headphone output.
    How is this accomplished?
    My second question, is it possible to use Mac Speech Dictate to pull segments of audio from a radio talk show into typed text? I sometimes write transcripts of talk radio segments for a blog and it takes such a long time to pause, type, pause, etc. I am looking for the best solution to just play the audio and have the program type it out.
    Once I have the best program, how would I get the audio in, would the internal mic pick it up if I played the audio through my stereo system at a loud volume?
    Thanks for your time and any assitance you can give me.

    Hi there,
    I'm having issues understanding what you want to do with the cables from your stereo. Do you want to record the talk show from the stereo into your MBP? If so, then you can use a simple Y-adaptor (Stereo RCA -> 1/8" minijack) to connect your stereo's audio output to the MBP's line-in jack. Or, are you trying to go the opposite direction? MBP to stereo? Sorry for my confusion.
    Edit: I'm sorry, I completely misread your first post. If you want to go from the stereo's headphone jack to the line-in on the MBP, you only need a 1/8" to 1/8" male-male cable. Is that what you were looking to do?
    --Travis
    Message was edited by: Travis A. (Thanks)

  • Headphone and other audio jacks not working on msi GT 70

    I was wondering if anyone could tell me why the headphone jack isn't working properly on my new laptop.  When I plug them in it only works in one ear and the onboard speakers still play.  Also nothing pops up from realtek when I plug them in.  I have already tried uninstalling and reinstalling the newest version of realtek. 
    I have been having a heck of a time with the graphics cards.  It will not default to the Nvidia GTX 670MX when I am in a program such as adobe premiere pro or photoshop.  I went into Nvidia and changed the certain programs that I wanted to run the Nvidia card - still wont run off of it.  I changed the global setting to Nvidia - still nothing.  Finally I just disabled the intel driver in the device manager.  It works fine now except exported video is very glitchy on the players.  It plays the videos fine when I enable the intel driver again.
    I guess I can live with the graphics card problems, but can't live without the headphones working.  Any help is greatly appreciated
    Thanks

    be sure everybody has same problem https://forum-en.msi.com/index.php?topic=180629.0 or https://forum-en.msi.com/index.php?topic=180690.0 I found a way if you had new nvidia driver delete nvidia sound driver after delete your msi sound driver after reboot , install your msi sound driver it will be normal but if not try first msi driver after nvidia with beta or new sound driver if still not use realtek new drivers but dont forget delete nvidia sound driver , but you should always repeat it , msi couldnt fix this problem just offer to use old driver and old nvidia driver

  • I have no sound playing MP3 and other, just have sound for MID

    Please sombody helpme to solve my problem, it es as a subject say.
    My palm can play every video, but no sound , except the MID extension file has good sound.
    Dose sombody know how to solve this problem, I will apreciate your help.
    Thank you!!
    Post relates to: Treo 750 (Cingular)

    Are the videos in one of the following formats?
    • MPEG-4• 3GPP2• 3GPP• WMV, WMA, ASF• RSTP Streaming 
    If they are, You can try a hard reset to resolve the issue. The hard reset will erase all data on the device. Make sure you sync to the PC to backup your data.
    Click on the following link to the kb.palm.com webpage for the article regarding reset procedures
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=41108
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://kb.palm.com/wps/portal/kb/na/treo/750/att/home/page_en.html
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.
    Message Edited by cygnusX1 on 11-09-2009 09:35 AM

  • Mp3 and AAC (unprotected) in FCE 4??

    Hi,
    I couldn't find any mention in the Apple documents. Does FCE 4 finally support mp3 and aac audio files??
    Thanks,
    Mace

    Well, I got FCE 4.0 and it doesn't appear to accept my aac files.
    Mace

  • Audio and other Bugs in 2.0 - are they fixed in 3.0?

    I just completed creating an e-learning course using
    Captivate 2.0 that used quite a lot of graphics and video. The
    numbers of bugs I experienced when publishing to Flash in 2.0 were
    so substantial that the delivery date had to be delayed almost two
    months, much to the unhappiness of the client. I'll list the most
    frustrating problems and hopefully someone can tell me if these
    issues were fixed in 3.0. It's difficult for me to justify an
    upgrade if I'm going to run into the same horrible problems.
    I will start out by stating that I keep my project files
    under 20 slides and all the slides have audio. The slides are 800 x
    500 and none of the animations/video I'm using are more than 20
    secs long. I'm running Captivate 2.0 on a Dell laptop with an Intel
    Core 2 Duo, running Windows XP (with all the updates) and with 1 GB
    of RAM. I've upped my Virtual Memory to 5 GB. My machine meets all
    the specifications listed for Captivate 2.0, but I suspect that one
    really needs a much faster machine with a lot more memory to work
    at anything other than a snail's pace. I also make sure that no
    unused graphics or animations are left in a project's library and I
    defrag my hard drive at least once a day (if I don't Captivate
    crashes everytime I try and open or save a file).
    Problems:
    - It takes up to 15 minutes to open or close a file. It
    doesn't matter how big the file is. And the more files I open and
    close in Captivate in any session, the slower my machine gets and I
    evenutally have to restart it. It also takes 10-15 minutes to save
    some of my project files, whose sizes have ballooned for no reason
    (see below). If Captivate crashes during the save or even right
    after a file is saved, the file is corrupted and cannot be opened.
    I've had to redo work two or three times because of this problem.
    - A project file with 10 multiple choice quiz questions and
    two other simple slides (and only one brief audio file) is over 1
    GB in size. I can't have more than 10 quiz questions because the
    file sizes get so large that the program crashes before I can save
    the file. I also have a number of 3-slide projects with graphics,
    no animations, and some audio that are over 1 GB in size. But then
    I have 20-slide project files with a lot of video and graphics and
    audio that never go above 200 MB. In fact, all my project file file
    sizes seem enormous for no good reason. And it's not from orphan
    files in the Library. It's going to take like 10 DVDs to turn over
    all my project files (about 40 project files - all under 20 slides
    each) to the client. It's ridiculous!
    - If I import audio as a WAV file and then publish the
    project to Flash, the audio either moves to different slides or one
    audio file gets repeated in all the slides. The only way to fix
    this is to convert all the .WAV files to .MP3 files (but at a very
    low bit rate), delete all the old WAV files from the project, and
    replace them with the MP3 files. Using a WAV file always leads to
    major audio scrambling when I publish to Flash.
    - If I use a .MP3 audio file with a higher bit rate, when I
    publish to Flash, the audio is slowed down by about 50%.
    - Graphics fail to show up in the .SWF file after a publish
    to Flash. This is entirely random and different graphics are
    affected each publish, so I never know what the published file will
    look like.The only way to fix this is to go back to the Project
    file, double click on the graphic and make a change to one of the
    options, save the change, reopen the graphic and change the option
    back to the one you started with. Then cross your fingers that
    another graphic won't vanish during the Publish process.
    - Objects that I have fading in and out on the timeline work
    perfectly in the project file, but when they are published as Flash
    output, the timings are all off by up to 15 seconds. This happens
    on a couple of slides and I can find no explanation or way to fix
    this. And it's completely random. One publish may have the timings
    out of whack and the next one has the timings correct.
    - Adding any animation to a project file causes all drop-down
    menus to stop functioning. I see from other posts that I just need
    to click on an object in the Library. Wish I had known about that
    sooner. I ended up restarting Captivate a lot.
    - After closing Captivate, it takes 15 minutes or more before
    my machine works at anything like it's normal speed. If I try to
    shut down my machine right after closing Captivate, I get an error
    message telling me Captivate is still running. It appears that
    Captivate does not release memory after it is closed. I have to
    restart my machine everytime I close Captivate just so I can
    continue working in other applications normally.
    These are just the major problems which caused the most
    headaches and delays. Most of it seems to be the VERY buggy publish
    to Flash option and some problems with releasing memory.
    I know a lot of other people have experienced these problems,
    as I've read about them in other posts. Has Capitvate 3 fixed any
    of these issues? There is no way I'd ever attempt another
    e-learining project with Captivate 2. This one about killed me.
    Thanks,
    Jim

    Thanks to everyone who has responded and tried to help.
    Unfortunately, none of suggestions have worked.
    Here's the update:
    - All my files are local, so the business about working on
    network drives is not applicable.
    - I tried the Save As option to try and decrease my huge file
    sizes as suggested by a couple of people. I did a Save As to
    another file name, then deleted the original file and did another
    Save As from the renamed file back to the original file name. My
    file sizes INCREASED each time I saved. I now have a 12 slide
    projects file with multiple choice quiz questions, no video,
    minimal graphics and audio that tops out over 1.1 GB.
    - I can't copy slides from one file to a new file because the
    file I want to copy slides from is so large that Captivate crashes
    everytime I try to Import slides from another project.
    - No one has mentioned anything about all the bizarre, random
    things that happen to graphics and audio when you publish to Flash.
    This is by far the most frustrating aspects of working with
    Captivate 2.0 - there is no telling what will turn up in your .SWF
    file and whether the audio will be on the correct slide. I've seen
    several posts about the problems using WAV files for audio or about
    MP3 files being slowed down in the SWF files but no one can say if
    these problems have been fixed in 3.0. Likewise the disappearing
    graphics and the inexplicable timeline delays when publishing from
    my Project file to an SWF file. And now a new one has popped up: in
    the SWF file, the screen size suddenly gets smaller on several
    slides, then goes back to normal!
    - It sounds like I need a lot more memory and faster machine
    (despite Adobe stating that my machine should be adequate to use
    Captivate) to deal with the slow performance, constant crashing,
    and frequent corrupted files. But this can't possibly explain the
    extreme file bloat and all the Publish errors when creating SWF
    files.
    At this point there's no way I can upgrade to 3.0 because of
    all the problems with 2.0. I can't make a justification to my boss
    to spend more money on a software program that (from his
    perspective and mine) does not work as advertised and has impacted
    this project so dramatically.
    It sounds like I'm the only Captivate user who is
    experiencing these difficulties, which is really perplexing and
    bizarre. Perhaps Captivate and Dell laptops are not compatible? I
    sure do wish that Captivate had a Mac version. At least there
    wouldn't be the usual Windows software excuse of "it must be your
    machine."
    Sigh... I sure did want to like Captivate, but everytime I
    open the program I get the hebbie jebbies, expecting some new
    disaster to befall me.
    Jim

Maybe you are looking for

  • Problem in using Web Dynpro project as GP Callable Object.

    Hi Experts, I am working on a process which consists of 2 steps    - Proposal Creation by Employee    - Evaluation & Approval by Manager Now i created a WD component for the first activity. The ouput parameters are       - Title of Proposal       (In

  • Blueprints Data Services

    Hi, I'm trying to use Blueprints for Data Services. I used document "Blue Prints Data Services Content Objects.pdf", there are all Instructions for downloading and installing. So I have done these steps: (1) Install the Global Parsing Options (2) Dow

  • Portal Eventing between Web DynPro Java iView and non-Web DynPro iView

    Dear Experts, I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the ev

  • Does Camera Raw support Canon G9?

    Appreciate any help with this problem: My new Canon G9 raw files (.CR2's) are not recognized by Bridge 4.1. Windows XP, SP2 Just installed CS3 Master Collection including: Bridge 2.1.0.100 Camera Raw 4.1 Bridge wont show Raw thumbs -- only "CR2" icon

  • Excise Duty Query

    Dear all,             We have a scenario where goods are supplied by one vendor and he sends the tax invoice but the excise invoice is sent by other vendor(the original manufacturer) in this case how to post the excise invoice. Regards,