Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old October 12th, 2007   #1
mig5
A Carafe of Ubuntu
 
mig5's Avatar
 
Join Date: Jun 2007
Beans: 151
Xubuntu 7.10 Gutsy Gibbon
Java Sound Configuration Problem /etc/java-x.x.x-sun/sound.properties

Hi,
I posted this problem before, but in a much more generalized problem thread (called "Java: Sound in Blackdown, No Sound in Sun. Blackdown Freezes"). At the time, I didn't know what was causing the sound not to work in Sun Java JREs 1.5 and 1.6 . Now I do.

In a Sun Java installation there is a sound configuration file called 'sound.properties' which is located under /etc/java-x.x.x-sun/ (the x being the version numbers). Normally you don't need to edit this file because the sound devices should automatically be detected. However, for me this is not the case.

I need help adding the correct information to this file to make java MIDI sound work (someone has already explained to me how to get java sampled sound to work). For the whole story, check out my original thread: http://ubuntuforums.org/showthread.php?t=497589

Here is the current contents of my /etc/java-6-sun/sound.properties file (only the last 4 lines were added by me):

Code:
############################################################
#               Sound Configuration File
############################################################
#
# This properties file is used to specify default service
# providers for javax.sound.midi.MidiSystem and
# javax.sound.sampled.AudioSystem.
#
# The following keys are recognized by MidiSystem methods:
#
# javax.sound.midi.Receiver
# javax.sound.midi.Sequencer
# javax.sound.midi.Synthesizer
# javax.sound.midi.Transmitter
#
# The following keys are recognized by AudioSystem methods:
#
# javax.sound.sampled.Clip
# javax.sound.sampled.Port
# javax.sound.sampled.SourceDataLine
# javax.sound.sampled.TargetDataLine
#
# The values specify the full class name of the service
# provider, or the device name.
#
# See the class descriptions for details.
#
# Example 1:
# Use MyDeviceProvider as default for SourceDataLines:
# javax.sound.sampled.SourceDataLine=com.xyz.MyDeviceProvider
#
# Example 2:
# Specify the default Synthesizer by its name "InternalSynth".
# javax.sound.midi.Synthesizer=#InternalSynth
#
# Example 3:
# Specify the default Receiver by provider and name:
# javax.sound.midi.Receiver=com.sun.media.sound.MidiProvider#SunMIDI1
#
javax.sound.sampled.Clip=#AudioPCI [plughw:0,0]
javax.sound.sampled.Port=#Port AudioPCI [hw:0]
javax.sound.sampled.SourceDataLine=#AudioPCI [plughw:0,0]
javax.sound.sampled.TargetDataLine=#AudioPCI [plughw:0,0]
Edit: the rest of this page and most of page 2 is just bumps, so you can skip those if your like.

Last edited by mig5; January 2nd, 2008 at 06:34 PM..
mig5 is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:35 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry