Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Linux sound

This thread is locked; no one can reply to it. rss feed Print
Linux sound
Viro
Member #811
December 2000

How do you get sound to work under Linux? Code that works fine in Windows/DOS just becomes silent under Linux.

I've got an Ess Maestro soundcard. Don't know if that's the source of the problems.

Can anyone help?

Evert
Member #794
November 2000
avatar

Depending on the nature of the problem, there are a few things you can try. I take it from your post that your soundcard works under Linux, but your Allegro programs don't make sound, is that correct?
Ok, first of all: is the problem with wave files or with MIDI? Personally, I can play wave files but not MIDI files because my soundcard doesn't have a hardware synthesiser. If that is the problem, you can use the DIGMID driver.
If that is not the problem, you can experiment with the OSS and ALSA drivers. IIRC, the default is ALSA, but it only works for me if I select OSS (which I understand is weird).
Anyway, try manually selecting a sound driver using the Allegro setup utility and see if that works.
Failing all that, what Linux distribution are you using and what Windowmanager?

Viro
Member #811
December 2000

I'm using RH7.2.

My sound card works fine under Linux, in both KDE(I use this by default) and GNOME.

Wav and MIDI files don't play on my system. The demo program that comes with allegro, runs silently on my machine. I'm sure that makes use of wav(soundfx) and midi files.

How do I check which soundcard drivers my system is currently using (hint, linux newbie here)?

Matthew Leverton
Supreme Loser
January 1999
avatar

Run the /allegro/setup/setup program and see if you can mess around and find something that works. If you're getting sound in Linux, Allegro should produce sound as well.

Viro
Member #811
December 2000

Very cool. I ran setup, and it works now. :)

Peter Hull
Member #1,136
March 2001

I too am having problems. My Mandrake7.2 system worked perfectly, but after upgrading to 8.2 I cannot get any digital sound. The setup program gives an error “/dev/dsp in use”. Sound on KDE is fine and I have artsd running. I am using allegro 4.0. Any ideas?

Pete

Juan Espinoza
Member #2,372
May 2002
avatar

maybe try oss driver or esd im not sure which driver allegro uses by default but i had the problem that midi does not play under linux also try fiddling around with your mixer sometimes your digital sound might be low or off

Thomas Fjellstrom
Member #476
June 2000
avatar

arts is using /dev/dsp :) thats why it's in use, either you disable arts or wait for the allegro arts driver to be finished :)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Peter Wang
Member #23
April 2000

It's finished, it's finished! Ok, not committed yet :) But aRts on my system would suspend itself if it wasn't used for 60 seconds. Instead of disabling artsd, you could try starting the program with artsdsp.

Peter Hull
Member #1,136
March 2001

I've also got a /dev/dsp1 what's that all about? Anyway I'll try Peter's suggestion tonight.

Go to: