bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/26339] Problems using javax.sound


From: takis at issaris dot org
Subject: [Bug classpath/26339] Problems using javax.sound
Date: 17 Feb 2006 13:31:14 -0000


------- Comment #1 from takis at issaris dot org  2006-02-17 13:31 -------

If you've got JamVM and Oscar installed you can reproduce it by using a few
commands:
jamvm -jar lib/oscar.jar
orb install "MP3 Player"
start 5
mp3 play file:/tmp/test.mp3


Which in more detail with Oscar's output will look like this:
address@hidden:/opt/Oscar$ jamvm -jar lib/oscar.jar

Welcome to Oscar.
=================

Enter profile name: takis

-> obr install "MP3 Player"
Installing: MP3 Player
-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.0.5)
[   1] [Active     ] [    1] Shell Service (1.0.2)
[   2] [Active     ] [    1] Shell TUI (1.0.0)
[   3] [Active     ] [    1] Bundle Repository (1.1.2)
[   4] [Installed  ] [    1] mp3 player (0.0.2)
-> start 4
A new command has been installed
mp3 play|stop <stream URL>
Ex : mp3 play http://sofsis.cl:8000/128.mp3
Ex : mp3 play file:/opt/mp3player/test.mp3
-> mp3 play file:/tmp/test.mp3
javax.sound.sampled.LineUnavailableException: no Clip available
   at javax.sound.sampled.AudioSystem.getLine (AudioSystem.java:387)
   at javazoom.jl.player.JavaSoundAudioDevice.createSource
(JavaSoundAudioDevice.java:101)
   at javazoom.jl.player.JavaSoundAudioDevice.writeImpl
(JavaSoundAudioDevice.java:148)
   at javazoom.jl.player.AudioDeviceBase.write (AudioDeviceBase.java:133)
   at javazoom.jl.player.JavaSoundAudioDevice.test
(JavaSoundAudioDevice.java:205)
   at javazoom.jl.player.JavaSoundAudioDeviceFactory.testAudioDevice
(JavaSoundAudioDeviceFactory.java:83)
   at javazoom.jl.player.JavaSoundAudioDeviceFactory.createAudioDevice
(JavaSoundAudioDeviceFactory.java:42)
   at javazoom.jl.player.FactoryRegistry.createAudioDevice
(FactoryRegistry.java:87)
   at javazoom.jl.player.advanced.AdvancedPlayer.<init>
(AdvancedPlayer.java:66)
   at javazoom.jl.player.advanced.AdvancedPlayer.<init>
(AdvancedPlayer.java:58)
   at insa.mp3.PlayerActivator.playMp3 (PlayerActivator.java:130)
   at insa.mp3.PlayerActivator.execute (PlayerActivator.java:94)
   at
org.ungoverned.osgi.bundle.shell.Activator$ShellServiceImpl.executeCommand
(Activator.java:280)
   at
org.ungoverned.osgi.bundle.shelltui.ShellTuiActivator$ShellTuiRunnable.run
(ShellTuiActivator.java:172)
   at java.lang.Thread.run (Thread.java:674)

The file is indeed accessible as can be seen: If the file is non-existing it
goes like this:
-> mp3 play file:/tmp/void.mp3
java.io.FileNotFoundException: No such file or directory: /tmp/void.mp3
   at gnu.java.nio.channels.FileChannelImpl.open (Native Method)
   at gnu.java.nio.channels.FileChannelImpl.<init> (FileChannelImpl.java:124)
   at gnu.java.nio.channels.FileChannelImpl.create (FileChannelImpl.java:116)
   at java.io.FileInputStream.<init> (FileInputStream.java:110)
   at gnu.java.net.protocol.file.Connection.connect (Connection.java:191)
   at gnu.java.net.protocol.file.Connection.getInputStream
(Connection.java:251)
   at java.net.URL.openStream (URL.java:684)
   at insa.mp3.PlayerActivator.playMp3 (PlayerActivator.java:123)
   at insa.mp3.PlayerActivator.execute (PlayerActivator.java:94)
   at
org.ungoverned.osgi.bundle.shell.Activator$ShellServiceImpl.executeCommand
(Activator.java:280)
   at
org.ungoverned.osgi.bundle.shelltui.ShellTuiActivator$ShellTuiRunnable.run
(ShellTuiActivator.java:172)
   at java.lang.Thread.run (Thread.java:674)



With friendly regards,
Takis


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26339





reply via email to

[Prev in Thread] Current Thread [Next in Thread]