Sound playback: no sound, abnormally high bitrate.

I've been reading up on using JMF for simple sound playback all day, and I've seen countless examples that do the same thing I'm doing, but in every instance, I get absolute silence. Additionally, it seems that the read bitrate is higher than it should be, according to the control panel's properties dialog (e.g., 480Kbps for a 192Kbps mp3).
The code always goes something simple like this:
    Player player = null;
    try {
      MediaLocator ml = new MediaLocator(new File("BGM.mp3").toURL());
      player = Manager.createPlayer(ml);
    catch (Exception e) { System.err.println("BGM messed up"); }
    if (player != null) {
      player.addControllerListener(p);
      player.start(); //this does realize and prefetch
    }I put some debug output statements in my controllerUpdate function, and it is indeed realizing, prefetching, and starting playback of the file. I have tried this with both wav's and mp3s (I have the mp3 plugin installed in addition to the JMF 2.1.1e itself), and have always gotten the same result - MediaTime progresses too fast, roughly 2.5 times faster than it should (5 seconds for every 2 real seconds), and I get no sound.
At this point, after having tried at least 2 examples found online in addition to my own code, I'm convinced there's something up with my Java runtime in itself, not just my code... anyone have any experience with this kind of problem?
System Info:
OS: Windows XP Pro SP1
Java Version: 1.5.0_02
JMF Version: 2.1.1e (zip version [no performance pack], with mp3plugin added)
Thanks in advance for any help.

Do you use it in an Applet ?
I'm also unable to play any sound with Java(TM) Plug-in 1.5.xx the
plugin to all browsers nowadays.
You mentioned you used it on Windows 98 SE.
The old IE browser used the build in javaVM. It worked - just look at
the java consol and you see a lot of warnings and errors -, but in the
end it played video and sound.
The only solution I found is to use Java(TM) Plug-in 1.4.xx. The
'automatic search for update' box must not be checked, otherwise it
will update to the newest Plugin and you face the same problem. If you
want to place an applet on your homepage, just use video only - until
now it works correctly on ALL PLATFORMS.
There was a Bug Report 6245070 where I was asked as well to give an
example a year ago, but this was all - no response at all. In this
applets I used
Content Type : video.quicktime
Video Encoding : h263
Audio Encoding : ULAW
not even mpg3!!
I tried to compile the whole JMF Version: 2.1.1e with J2SE 5.0 and
Standard Edition 6 Beta. At one version I changed all the
inconviences like the reserved words "enum" ..., and an other version
with old style, which is possible with Standard Edition 6 Beta.
It seem's the problem is not in the part you are able to compile. It
seems to me it is in the sound.jar api, but I really don't know - just
trail and error.
Conclusion only JRE lower and until version 1.4.xx will work.
It would be a pleasure to me if I'm wrong and there is a solution.

Similar Messages

  • Sound Playback Issue with IDT High Definition Audio Codec HP Pavilion dv6 Notebook PC

    Since i bought this laptop, every time i use skype or the Windows Sound Recorder, i hear static that drastically increases in volume. Uninstalling the IDT High Definition Audio Codec prompts my computer to automatically install the driver again, this usually fixes the problem, but after restarting my laptop, the problem returns.
    Does anyone know a permanent fix to this issue?
    Product name: HP Pavilion dv6 Notebook PC
    Product number: B3K22PA#ABG

    Hi,
    Please try:
    (a) Uninstall IDT sound from Device Manager,
    (b) Reboot the machine
    (c) Download the following package and install again:
         http://ftp.hp.com/pub/softpaq/sp55001-55500/sp55094.exe
    (d) Reboot the machine.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Does the low bitrate of x-fi 5.1 pro affect playback quality of higher bitrates?

    I needed a 5.1 sound card for my laptop, and this was the only one I could afford used -- so far Im pretty satisfied, it works for cheap.
    but I need to know if its important to save up for a better one right away --
    I was concerned that since it only supports 44.8 and 96kbps that higher encoded audio like 128kbps and greater may not play back at the same quality they were recorded -- this is important because I ONLY use digital audio -- I have no analog -- videos are blu-ray rips, audio is FLAC or high encoded MP3, no cds, dvds, physical blu-rays.
    so the encoding is often 128kbps or higher. sometimes even 196.
    right now im keeping it until I can afford better regardless -- but is playback of these higher bitrates lower quality since it is being output at only 44.8 or 96?
    just wondering, been finding it hard to get a straight simple answer to this. lots of people insist I never have audio play back at higher than 44.8 or 96, but I find that impossible since LOTS of my audio is encoded either lossless or at a higher rate.

    So are you only getting sound out of the front center channel? I have this issue only from certain audio sources, such as YouTube videos, where all front right and left channel audio is put out through the center channel only. Are you not getting sounds from the front channels when using any type of media (mp3, games, DVDs)?
    The only other reasons I was having issues like this were as follows: I hadn't checked the mixer settings yet in the windows and creative control panels to ensure volume levels were set correctly for all channels; I hadn't yet set my speakers to 5. sound (although this only affected the rear channels).
    Let me know what you find. Also, have you tried the utility in the Creative control panel that lets you click each speaker to test it yet?

  • I am trying to access a website with everyday videos, but there is no image playback, only sound.

    When i am trying to access the web page, everything goes smooth, but when I get to the video playback, it doesn't show any image, you can only hear the sound playback of the video. I accessed this web site with other web browsers, and it worked just fine, with both image and audio playback. From the same web site, sometimes videos work, but that is very rare, and I don't know what determines this kind of behavior.

    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r45
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/

  • Lost sound playback for movies, podcasts, etc.  How can I regain playback?

    I have lost audio playback for movies, podcasts, etc on my iPad2.  New user.  How can I get my sound playback back?  It worked initially!

    discovered the solution from another discussion group. 
    Double clicking on the "home" button of the iPad opens a list of apps across the bottom of the screen.  Moving to the left end of this display there is an audio slide bar which was set to the lowest part on my iPad.  Moving this setting to a mid level restored sound to the video feeds I was having trouble with.

  • Pavucontrol/Pulseaudio hangs sound playback

    Hello everyone
    I've posted on this before, and the bug went away, but now it's back and I just wish it'd go away permanently. For reasons I can't explain, trying to control the volume with pavucontrol (or, it seems, any volume control that interacts with pulseaudio) suspends sound playback. And then pavucontrol crashes with a callback timeout failure error.
    I've followed all the various guides on setting up Pulseaudio. I've experimented with setting sinks, with setting sound outputs, everything. But time and again the pavucontrol applet brings the sound to a halt. As far as I know I've installed everything that might be needed. I used to like Pulseaudio, the whole control-volume-of-individual-streams is great. But it just doesn't work. And yet it's one of those features, which once you get used to it, is really hard to live without.
    How can I fix this once and for all?
    EDIT: Reading /var/log/errors.log I've noticed that Pulseaudio is failing to set hardware parameters with a connection timeout.

    Have you tried setting the pulse volume from alsa (amixer)? You should really bring this to the pulse mailing list, since this sort of bug is probably hardware/driver level and not very simple to debug.

  • Quesiton about Sound Playback and Palm OS

    I have read all the posts on how to playback a sound on a mobile phone...which is this code
    InputStream isAudio = getClass().getResourceAsStream ("/wave.wav");
    player = Manager.createPlayer(isAudio, "audio/x-wav");
    player.start();
    i wanted to know if anyone has done it using the Palm OS (a Zire 72 handheld to be specific) i need to know the exact path where the audio files are stored on the CD Card
    I have contacted Palm and they said its in the Audio Folder...but using "/Audio/wav.wav" does not work. (my app is installed on the SD Card as well)
    Has anyone else tried to do this?

    Actually my question has just changed, i found out what the path is for files saved to the SD Card.
    i have the following code, can anyone tell me why im getting an error
    code::
    String url = "file://Audio/test.wav";
    player = Manager.createPlayer(url);
    player.start()
    Error:
    Exception: MediaException
    Message: Unable to Create a Player for the locator: file://Audio/test.wav

  • Sound/Playback Stops Suddenly in Windows Vi

    I have recently encountered a very strange problem with my computer: the sound/playback stops working randomly. For instance, let's say I've just rebooted my computer and have launched WMP to play some mp3s. It will work fine for anywhere from a day or two to, at minimum, a few minutes...and then, once an mp3 file finishes playing, sometimes I will hear a weird sort of "squeak" coming from the speakers--after which playback will not work--but even if I do not hear any sort of strange audio, if I click another file to play...WMP will load the media, but will not play it. The play button will switch to pause as normal, but the file will not play. The exact same thing happens in *other* media players, as well: iTunes, J. Ri'ver Media Center...even WinAMP. I have a SoundBlast X-Fi Platinum audio card, and have been running it under Windows Vista Home Premium since January with no problems. I have all the current Vista drivers installed for it, and *have* had them installed for months. I'm really not sure whether this problem is software- or hardware-related, hence the reason I'm crossposting this to?Microsoft's Vista?forums as well. What should my next step be? I'm not really sure where to go from here. Thank you!?Dere C. F. Pegritz

    I have the same problem here too. Vista Ultimate 64bit4Gb RamX-fi Extreme Gamer Pro?Currently have to re-boot when it happens. I have just installed the new drivers (30 May) - I will see if this has any effect!?RegardsBrian.

  • Sound playback in LT?

    a way to hear sound playback on an imported fcp movie file in LT? I could only get video playback, but sure would B helpful to have sound instead of just markers- is it a setting?
    thx

    Nope. Just markers. Bottom line: There's no audio playback support in LiveType.
    It's a silent app. That's a feature! No pesky sound annoying your studiomates.
    Your best bet is to have LiveType and FCP open at the same time. Save your LT project, and import it into FCP. When you change something in LT and want to preview it with sound, go to FCP (use Expose and you'll look cool), and play. It will automatically recognize the changes you made in LT. If you need to tweak, go back to LT, change things, and come back to FCP to play. it's really not all THAT clunky.

  • While recording videos in iPhone 5, I am not getting sound playback.

    While recording videos in iPhone 5, I am not getting sound while playing it. How to resolve this issue? Please help. Thank you.

    Hi manu1982,
    Welcome to Apple Support Communities.
    It sounds like your iPhone has a no sound from the speaker issue. The article linked below provides a lot of great troubleshooting tips that may be able to resolve the issue.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    I hope this helps.
    -Jason

  • High bitrate on wireless mu

    I purchased the Wireless Music device about a month ago and it has worked flawlessly out of the box for me. I have just run into the first snag, however. I have been ripping all my music as relati'vely high bitrate MP3's with no problem. I wanted as clean a sound as I could get with my classical CD's so I burned them as lossless WMA's. Unfortunately, they won't play. I get a long hourglass on the remote and then no sound. The track is listed under 'Now Playing' but nothing comes out of the speakers. Do I have to settle for half the bitrate to play my classical music?

    I still haven't heard back on this topic. Most of my music is fine at 320, but I would like some music (especially the classical) to be played in lossless format. Hoping for a solution.

  • Can't handle high bitrates??

    Hey all. I've noticed that when I play songs that are 192kbps or 320kbps or higher bitrate, that the music tends to sound distorted a little. It's not very bad but it does get irritating sometimes. Is it just me or does it seem that the nano can't handle high bit rates?
    I have a Creative ZEN 8GB and I do not seem to hear the same distortion that I did with the nano. Hope someone can help. Oh btw, I did test the same type of songs using the same headphones.

    I notice this problem when I listen to songs such as Chris Brown - Forever, Rihanna - Don't Stop The Music and a few more I can't remember. So pls help! Thanks!

  • No sound coming through sound board with Adobe cs5.5

    I nstalled adobe cs5.5 and im geeting no sound through my sound board

    I'm afraid that before we can help you we'll need many more details:  Mac or PC, which version of the operating system, what type of sound card (I assume that's what you mean when you say "sound board", whether the lack of sound is on recording, playback, or both, exactly what happens when you try to record or playback, that sort of thing.
    A couple of general notes:  Assuming you're on a Windows machine (if Mac, somebody else will have to help), go to the Windows sound controller and make sure you sound board is set up as the default device on both the recording and playback tabs.  Go to the Advanced tab and select the same sample rate and bit depth on both recording and playback.
    Then go to Edit/Preferences/Audio Hardware in Audition.  Under Device Type, select MME or ASIO--if it's a built in sound card then it'll almost certainly be MME.  On the drop down menus, select your sound card (which should be an option) under both Default Input and Default Output.  Select your sound card output as the master clock.
    Finally, set Audition to the same sample rate as you set on you Windows Audio control.
    Anyhow, try the above--and we can get into more detail if you provide the extra info we requested.

  • Sound output with sound and vibration toolkit

    Hi!
    Wants to setup a system with two microphones that are connected to DAQ NI USB-9162 and perform a Frequency Response between them where one of them has the undisturbed signal (close in space) and the other the respons (further away). My problem is that I want to send out noise or multitone through labview to an amplifier with internal D/A connected to my USB (turns up as a soundcard in windows). I can not find this option to send out sound in the sound and vibration tool.
    Using evaluation version of both Labview and the sound and vibration kit since I wanted to see if it was possible to perform this application with Labview. Feels close but lack the success still.
    Best regards
    Fredrik

    Fredrik76 wrote:
    Ok so I have to use the Labview interface instead of the sound and vibration toolkits interface? I see the sound out option in Labview where my card apperas but not in the sound and vibration toolkits interface. Guess I have to add the options for the analysis manually then?
    It should be easy to do some modifications if you have some code doing what you want, but not with a sound card. If you have some code just post it. So I can take a look. Note that sound cards do not support all sample rates. But all sound card do support 44100 Hz as sample rate. And newer sound card also higher rates. And how good your setup will be. Will depend somehow on your sound card. But by all means give it a try  
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Re: Pavilion A4316F - sound then no sound

    Hi,
    Got my computer last week.  I had sound for days then nothing.  Suddenly it started working
    AMD Athalon II 620 processor 2.6 ghz
    6 GB
    64 Bit
    I've checked all types this - audio, video, dvd, cd, computer sounds, headphone - nothing works.
    I've attached separate speakers.
    I've updated, uninstalled & reinstalled drivers for the sound card, which is Realtek High Def Audio.
    I've checked all the volumes & mixers.
    I've checked cords both outside and inside the CPU.
    I've run troubleshooting and diagnostics.  The graphics show the sound is there...for instance the lightsdance up and down the bar and the bars bounce from the speakers but I can't hear a thing.
    Any suggestions?

    Took the computer back to Staples where I purchased it today.
    Their techs took a look at it and decided the sound card was dead.
    They gave me a new computer.
    Thanks for letting me post.

Maybe you are looking for

  • How to get the name of the selected building block in a building block content control?

    Hello, How can I obtain the name of the selected building block in a building block content control? I want to use this together with an on exit-event to populate other content Controls depending on the name of the selected building block item. Envir

  • Documaker Add-in for microsoft word

    Hey guys where can i download documaker add-in for MS-WORD 2007

  • Email not connecting

    I have been away travelling for a few days and three days ago, my iPad (iOS 8.2) failed to connect to my two email providers. Now I am home, and although the device indicates 'connected' (and I can get my emails on my home PC using the same ISP), I c

  • How do I completely remove a background from an image & keep it as a .jpeg?

    Hi , I already know how to remove backgrounds from images, and create a transparent background.  However, I need to be able to use the resulting image in another program  called Scratch.  And as far as I know, it does not accept  .tiff, .pgn, .psd or

  • Bridge missing lens profiles

    Hi there, for some reason my new copy of the latest Bridge seems to only show 6 lens profiles for nikon. Bridge has been updated to the most current update but that didn't seem to help... Can anyone shed some light on what the problem could be here?