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

Re: MIDI support changes in Java5/6



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Torquil Macdonald Sørensen schrieb:
> Hello, I have a question about MIDI supprot in Sun Java 5/6 in Debian.
> I'm trying to use a program called Impro-visor, which is written in Java
> and uses the built-in MIDI support in Sun's Java.
> 
> I haven't been able to get any sound from this program on Linux, after
> having tried sun-java5-jre and sun-java6-jre, although it works fine in
> windows  with Sun Java 6.
> 
> On Linux I'm trying to use it with a software synth
> (timidity/fluidsynth), since I don't have MIDI on my sound card. But the
> behaviour is a bit different with Java5 and Java6, and that's why I'm
> wondering if anyone has any experiences with the build-in MIDI support
> of those two JREs? Has there been any changes between the two versions?
> I haven't found anything in the Java 6 release notes:
> http://java.sun.com/javase/6/webnotes/ReleaseNotes.html
> 
> Using Sun Java 5, Improvisor tells me that it has found a midi device,
> and it says "Status: ready". With Java 6 however, it says "Status:
> null". In the terminal window I get an error message "*** Warning:
> 10:51:32AM: null - null" every time I use "Reload MIDI devices" in
> Impro-visor.
> 
> The authors of the program write that they don't know anything about the
> internals of the MIDI system in Java, so they can't help with this problem.
> 
> I use ALSA, and the timidity/fluidsynth software synths work fine when
> playing a midi file with pmidi.
> 

Hello,
I tried the Java Sound Demo on Debian/Etch with Sun Java5 and got
similar problems.

Demo:
http://java.sun.com/products/java-media/sound/samples/JavaSoundDemo/


I analysed the issue and find out that the Sun VM use the /dev/dsp
device.  -> It is the old sound interface and so you need the package
oss-compat (apt-get install oss-compat).

Nice greetings,
Harald

- --

Harald Krammer
Brucknerstrasse 33
A - 4020  Linz
AUSTRIA

Mobil +43.(0) 664. 130 59 58
Mail: Harald.Krammer (at) hkr.at
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIn0lW9QlAsubHO9sRCD1lAKC9Mv1DChFrwuSxDGPsUcRFc1IyeACgi5JF
oAbNuQ+NHyjImPkzrBtYCiE=
=MSO3
-----END PGP SIGNATURE-----


Reply to: