Tips for Game Editor native Linux Port (sound included)
Posted: Mon Mar 26, 2012 2:42 am
Tips are mainly fo ubuntu but will work in any new Linux system if you change details.
Sound Fix (still no MIDI)
Most Linux distros are using pulseaudio as the default sound server. The hardware level for soundcards is still in alsa / oss4 (the new oss that has nothing to do with the old one). Pulseaudio is able to work with programs developed with pulseaudio in mind or alsa/oss4 devices and many others.
Since Linux audio is kind of a mess. There's wrappers for everything. In the case of legacy oss -> pulseaudio you can use a utility called padsp avaliable from the pulseaudio-utils package. This package is installed by default on Ubuntu but not on debian and fedora, so apt-get install pulseaudio-utils and yum install pulseaudio-utils on these systems.
Once you have it, do this to have the native linux game editor stream its audio to pulseaudio.
That's it. Sound should be working. MIDI still wont work since padsp does not work with MIDI. You can see the error in the terminal asking for /dev/sequencer. Don't think there's a distro that still uses /dev/sequencer nowadays.
Problem with Ubuntu Unity
Most of the time, game editor will bug out without menu. It's because of compiz and unity. I can't fnd a solution but you can run ubuntu within other Desktop Environments. Here's a list.
Unity 2D
Gnome3 With gnome-shell: (apt-get install gnome-shell)
LXDE for most simplicity and peformance: (apt-get install lxde)
Xubuntu is a branded, more app rich version of LXDE (apt-get install xubuntu-desktop)
openbox: if you just want X running, thats it. It will appear in front of you so fast, with nothing at all, you will think it's not working. Just right click, open xterm and call the programs you want. Very primitive but good for performance. I use it to run audio programs. (apt-get install openbox) btw openbox is the default windows manager used on LXDE.
Hope it helps!
Sound Fix (still no MIDI)
Most Linux distros are using pulseaudio as the default sound server. The hardware level for soundcards is still in alsa / oss4 (the new oss that has nothing to do with the old one). Pulseaudio is able to work with programs developed with pulseaudio in mind or alsa/oss4 devices and many others.
Since Linux audio is kind of a mess. There's wrappers for everything. In the case of legacy oss -> pulseaudio you can use a utility called padsp avaliable from the pulseaudio-utils package. This package is installed by default on Ubuntu but not on debian and fedora, so apt-get install pulseaudio-utils and yum install pulseaudio-utils on these systems.
Once you have it, do this to have the native linux game editor stream its audio to pulseaudio.
- Code: Select all
cd path/to/gameeditor/folder
padsp ./gameEditorLinux
That's it. Sound should be working. MIDI still wont work since padsp does not work with MIDI. You can see the error in the terminal asking for /dev/sequencer. Don't think there's a distro that still uses /dev/sequencer nowadays.
Problem with Ubuntu Unity
Most of the time, game editor will bug out without menu. It's because of compiz and unity. I can't fnd a solution but you can run ubuntu within other Desktop Environments. Here's a list.
Unity 2D
Gnome3 With gnome-shell: (apt-get install gnome-shell)
LXDE for most simplicity and peformance: (apt-get install lxde)
Xubuntu is a branded, more app rich version of LXDE (apt-get install xubuntu-desktop)
openbox: if you just want X running, thats it. It will appear in front of you so fast, with nothing at all, you will think it's not working. Just right click, open xterm and call the programs you want. Very primitive but good for performance. I use it to run audio programs. (apt-get install openbox) btw openbox is the default windows manager used on LXDE.
Hope it helps!