Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Linux first time - need help with sound!  (Read 1755 times)
0 Members and 1 Guest are viewing this topic.
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Posted 2003-04-12 08:11:41 »

Hi community!

I've installed Linux now but have some probs getting Java3D to work properly. Sound it the problem.

What is wrong??

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
java.lang.UnsatisfiedLinkError: open
        at com.sun.j3d.audioengines.headspace.HaeMixer.open(Native Method)
        at com.sun.j3d.audioengines.headspace.HaeMixer.construct(HaeMixer.java:126)
        at com.sun.j3d.audioengines.headspace.HaeMixer.<init>(HaeMixer.java:94)
        at com.sun.j3d.audioengines.headspace.HaeDevice.<clinit>(HaeDevice.java:30)
        at com.sun.j3d.audioengines.headspace.J3DHaeStream.initialize(J3DHaeStream.java:69)
        at com.sun.j3d.audioengines.headspace.HeadspaceMixer.initialize(HeadspaceMixer.java:120)
        at com.sun.j3d.utils.universe.Viewer.createAudioDevice(Viewer.java:958)
        at MoveAppBoundingLeaf.init(MoveAppBoundingLeaf.java:341)
        at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.java:262)

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Conzar

Junior Devvie




There is nothing common about common sense


« Reply #1 - Posted 2003-04-13 13:27:59 »

I haven't ever had those problems with j3d.

But does your sound work with XMMS?  Are you using the OSS driver?

If you haven't setup your audio yet, then you can  do the following
open a term (if your in X) and type
</>su -l
then
</>setup

then go to audio setup and select the sound card that you have installed.  
If you have an onboard sound card - this might not be supported with the drivers you have installed - there are several places to look - you have the ALSA drivers
http://www.alsa-project.org/

and OSS drivers
http://www.opensound.com/linux.html

To look through.  check these sites to see if you sound card is supported - I had to compile and install their latest drivers for my onboard sound (thats until I got a Sound Blaster Live because with most on-board sound, they can only do audio out because each motherboard chipset for audio is packaged differntly.  The mb companies doni't provide the necessary information for these guys to write more then just audio out).

I hope this helps.

Ubuntu
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #2 - Posted 2003-04-14 06:44:44 »

Good to know it's not a general problem.

Sound works fine on Linux with other apps, just not with Java3D.

No idea wether I already have or haven't this OOS or alsa crap. How to find out?

I looked up the alsa soundcard matrix, but it seems not to support an SiS i810 that is reported by the linux hardware browser.

The 'setup' you mention doesn't offer an option to configure sound.

BTW, I installed a RedHat8.

[rant]
Man - I have been a unix admin for years - but I'm not able to setup a Linux box properly - no wonder that M$ is that successful....
[/rant]


HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Conzar

Junior Devvie




There is nothing common about common sense


« Reply #3 - Posted 2003-04-14 10:26:59 »

so in the setup program, you do not have a field saying
"sound card configuration" ?

try typing
/sbin/lsmod

This shows info about the modules that are loaded
You should have something simular to this in the list that is printed.
emu10k1                60832   2 (autoclean)
ac97_codec             12256   0 (autoclean) [emu10k1]
sound                  69260   0 (autoclean) [emu10k1]
soundcore               6212   7 (autoclean) [emu10k1 sound]

But this doesn't quite sound like a an audio issue since all the other sound works.  Are you sure your classpath and path are setup correctly?

How did you install j3d - in a seperate directory or in the same direcotyr as your standard java install?

If its in the same directory then all you need to do is point the PATH like the following in your .bash_profile (this is in your home directory)

export PATH
#Java 1.4.1_01
export PATH=/usr/java/j2sdk1.4.1_01/bin:$PATH
export PATH=/usr/java/j2sdk1.4.1_01/jre/bin:$PATH
export PATH=/usr/java/j2sdk1.4.1_01/include:$PATH

If you have it in another dir, then make sure you include that in your path.


Ubuntu
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #4 - Posted 2003-04-14 11:11:06 »

Quote
so in the setup program, you do not have a field saying
"sound card configuration" ?


Nope. Just
1  
2  
3  
4  
5  
6  
7  
8  
                        | Authentication configuration   │
                       │   Firewall configuration         │
                       │   Keyboard configuration         │
                       │   Mouse configuration            │
                       │   Network configuration          │
                       │   Printer configuration          │
                       │   System services                │
                       │   Timezone configuration


Quote

try typing
/sbin/lsmod

This shows info about the modules that are loaded
You should have something simular to this in the list that is printed.
emu10k1                60832   2 (autoclean)
ac97_codec             12256   0 (autoclean) [emu10k1]
sound                  69260   0 (autoclean) [emu10k1]
soundcore               6212   7 (autoclean) [emu10k1 sound]



1  
2  
3  
i810_audio             25224   0  (autoclean)
ac97_codec             13416   0  (autoclean) [i810_audio]
soundcore               6500   2  (autoclean) [i810_audio]


Ok? Sound module is missing. I found the following in /etc/modules.conf:

1  
2  
3  
4  
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 ||
:



Quote

Are you sure your classpath and path are setup correctly?

How did you install j3d - in a seperate directory or in the same direcotyr as your standard java install?

If its in the same directory then all you need to do is point the PATH like the following in your .bash_profile (this is in your home directory)

export PATH
#Java 1.4.1_01
export PATH=/usr/java/j2sdk1.4.1_01/bin:$PATH
export PATH=/usr/java/j2sdk1.4.1_01/jre/bin:$PATH
export PATH=/usr/java/j2sdk1.4.1_01/include:$PATH


How can I be sure?? But anyway, I have them in my path (except include!) I installed J3D to /usr/java/j2sdk1.4.2/ and added a setup script to /etc/profile.d

Another more general question: does LD_LIBRARY_PATH still play any role? How are the libs from /usr/java/j2sdk1.4.2/jre/lib/i386/ found at all?


If you have it in another dir, then make sure you include that in your path.

[/quote]

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #5 - Posted 2003-04-14 11:22:16 »

Forgot to say Conzar - I deeply appreciate your help, I'm lost.....

Thank you,

- J

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Conzar

Junior Devvie




There is nothing common about common sense


« Reply #6 - Posted 2003-04-14 13:33:50 »

hey, have you tried earlier versions of the jdk like 1.4.1 or 1.3.1?
I haven't tried the 1.4.2 yet - maybe this might be causing problems?

I'm not sure about how the LD_LIBRARY_PATH effects java but I don't think you need to concider that at the momement.

Also, when did you select your sound card - apon install?

 

Ubuntu
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #7 - Posted 2003-04-14 13:54:13 »

Yes, during initial installation. It has been recognized automatically and the test passed. To be honest, before I never had the slightes idea what kind of soundcard I have at all..

Btw, if I change a single method to catch a Throwable (Exception is NOT enough), my non-trivial app works fine without any further change of code. Just silent.

It is not even obviously slower although running on Linux now.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
private void initSoundDevice( PhysicalEnvironment phenv )
    {
        try
        {
            HeadspaceMixer mixer = new HeadspaceMixer( phenv );
            mixer.initialize();
        }
        catch ( Throwable e )
        {
            Log.logger.warning( "Cannot setup sound device!" );
        }
    }



HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Conzar

Junior Devvie




There is nothing common about common sense


« Reply #8 - Posted 2003-04-14 14:20:39 »

So you are using the pre-build j3d sound stuff?

Have you thought about using jmf or javazoom?

http://java.sun.com/products/java-media/jmf/
http://www.javazoom.net/javalayer/sources.html

Ubuntu
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #9 - Posted 2003-04-14 14:39:49 »

args - now I installed the ancient 1.4.1 + Java3D 1.3 and now I have the sound working. Laggy - but working.....

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Conzar

Junior Devvie




There is nothing common about common sense


« Reply #10 - Posted 2003-04-14 16:41:25 »

well, remember: 1.4.2 is just beta

Ubuntu
Offline PlanetMongo

Senior Newbie




Follow the yellow line. &nbsp;Don't EAT the yellow line


« Reply #11 - Posted 2003-04-14 23:29:02 »

Quote
args - now I installed the ancient 1.4.1 + Java3D 1.3 and now I have the sound working. Laggy - but working.....


Sound and Linux aren't exactly.. friendly to one another.  Lots of well known deficiencies in this area (I personally hate it when I get a crash when someone IM's me while I'm watching something via Xine or Mplayer).  There are some people working on it, though, but then again that's why I'm back on Microsoft for now, too.  "Working on it" just isn't good enough for me right now.  

If you were me, you'd be good lookin - six string samurai
Offline Conzar

Junior Devvie




There is nothing common about common sense


« Reply #12 - Posted 2003-04-15 00:30:20 »

that isn't a sound issue - thats a gaim issue.  You might need to upgrade to the latest gaim - that should solve that problem.

Ubuntu
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #13 - Posted 2003-04-15 00:33:00 »

I can highly recommend FreeBSD 5.0 based on personal experience. The only gotcha I'd tell you to look out for right now is to disable DMA transfers for TV tuner cards. Those will get you. Oh, and GPlayer is a real pain in the ass. Use Xine or MPlayer. Other than that, you've got all the binaries of Linux with none of the hassle. :-) Plus the ports system rulez!  Grin

Java Game Console Project
Last Journal Entry: 12/17/04
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (52 views)
2014-11-13 12:34:49

digdugdiggy (34 views)
2014-11-12 21:11:50

digdugdiggy (28 views)
2014-11-12 21:10:15

digdugdiggy (23 views)
2014-11-12 21:09:33

kovacsa (46 views)
2014-11-07 19:57:14

TehJavaDev (50 views)
2014-11-03 22:04:50

BurntPizza (49 views)
2014-11-03 18:54:52

moogie (65 views)
2014-11-03 06:22:04

CopyableCougar4 (63 views)
2014-11-01 23:36:41

DarkCart (148 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!