Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7073249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:54:25+00:00 2026-05-28T05:54:25+00:00

So far I only found two ways: throw exception play nothing ad.2. Pretty recent

  • 0

So far I only found two ways:

  1. throw exception
  2. play nothing

ad.2. Pretty recent code (2010)

  • http://www.developerfusion.com/article/84314/wired-for-sound/

but does nothing, not sound at all.

ad.1. For example:

  • Trouble playing wav in Java
  • http://www.anyexample.com/programming/java/java_play_wav_sound_file.xml
  • https://stackoverflow.com/a/2433454/210342

All I get is exception “Audio Device Unavailable”. As this article (2008) — lsof |grep snd — how to free a linux sound device — explains Java has to get exclusive access to audio device.

However I cannot afford such condition. I use sound to notify myself on long running process (several hours), I cannot get rid of all sounds (including those forced via Flash ads) just to make Java comfy.

So for now I use total extreme — I simply launch external program: https://stackoverflow.com/a/8370223/210342 . This is ugly as hell because well new program is launched just to make notification.

Question

Is there currently a way to play a WAV file:

  • on Linux,
  • in cooperative way (during Java playback there may be other audio played as well),
  • which makes sound,
  • in Java (no launching external programs)?

Java 1.6, openSUSE 11.4

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:54:25+00:00Added an answer on May 28, 2026 at 5:54 am

    So, thanks to AT answer I drifted from JMF to JMF problems, and that led me to VLC-J. And this is the answer — in order to use multimedia in Java program simply don’t use Java (pity, btw. that Java in year 2012 does not have reliable multimedia layer, gee.).

    Marking as solved, because VLC-J allowed me to play audio without problem.

    Main project site:
    http://code.google.com/p/vlcj/

    Minimal playback program:
    http://code.google.com/p/vlcj/source/browse/trunk/vlcj/src/test/java/uk/co/caprica/vlcj/test/minimalmp3/Mp3Test.java

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In HTTP there are two ways to POST data: application/x-www-form-urlencoded and multipart/form-data . I
so far i only know to use Ctrl-Shift-A to do SVN in TextMate. is
So far I've only built small graphical applications, using swing and JComponents as I
thus far i've only been using some basic jquery selectors and functions. but i'm
The only experience I have so far with a touchscreen interface was one where
I've only done a bit of Flex development thus far, but I've preferred the
So far, I've only been passing javascript strings to my web methods, which get
As far as I know, only the convenience methods return created objects with an
As far as I know document.getElementById('myId') will only look for HTML elements that are
I need to find a reg ex that only allows alphanumeric. So far, everyone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.