Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Java program steals sound--can't use other sound programs.  Linux KDE

Posted on 2011-03-14
8
Medium Priority
?
538 Views
Last Modified: 2012-05-11
I have a Java Forex trading platform that runs on my Kubuntu Linux (KDE) desktop.

There is an alert feature in the trading software and when I run the program, my sound card is unavailable to other programs.  Usually this is not the case, when running other sound programs (players and such), as I have been using ALSA.

My guess is that the java program is using something other than ALSA (maybe opensound).  

Does that sound right (excuse the pun)?

If so, is there a way to change this within Java, or does the program itself specify which sound device to use?  My desktop default is set to ALSA.

0
Comment
Question by:ibanja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 35131222
0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 35132905
> My guess is that the java program is using something other than ALSA (maybe opensound).  

I believe java uses hardware devices which is why you see that problem
try java7, think it can use alsa
0
 

Author Comment

by:ibanja
ID: 35142713
CEHJ,
I read through the tread. Looks like I have ALSA set up properly, and the module is loading.  

$ lsmod |grep snd_seq_oss
snd_seq_oss            35584  0
snd_seq_midi_event      8320  2 snd_seq_oss,snd_seq_midi
snd_seq                54224  7 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_seq_device          9612  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    56996  20 snd_rtctimer,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device

objects,
I have been reading up on the java7--looks like it's worth a try.  I have to wait for an opportune time to bring the trading platform down.  I don't want to break something... and not be able to get it back quickly.  I will probably do that in the next day or two, then get back with the results.

Thanks both...
0
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
LVL 86

Expert Comment

by:CEHJ
ID: 35142826
>> Looks like I have ALSA set up properly,

It's esd that's of interest
0
 

Author Comment

by:ibanja
ID: 35156781
>> It's esd that's of interest
I tried going through the whole instruction process on that link.  It crashed galeon (I think--something did) and didn't fix the problem.  
0
 

Author Comment

by:ibanja
ID: 35156824
From what I've been reading, I'm inclined to believe that Java7 is the answer.  I had issues installing it on this machine but, I am in need of a distro upgrade so I think that is the problem.  

It may be best to wait until I upgrade my distro, and Java 7 is in the main repository.  I need stability, and don't want to risk braking anything.

Thanks
Frank
0
 
LVL 92

Expert Comment

by:objects
ID: 35160734
>  It crashed galeon (I think--something did) and didn't fix the problem.  

no esd won't help you, java will still use h/w drivers
0
 

Author Closing Comment

by:ibanja
ID: 35173828
Thanks for the help!
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question