Searge-DP / protrekkr

Automatically exported from code.google.com/p/protrekkr
2 stars 2 forks source link

ubuntu Error while calling open("/dev/dsp") #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Very nice program! I am starting using it on MacOSX Snow Leopard and it works 
great.

I try to run in an Ubuntu Virtual Box Machine and
it display ubuntu Error while calling open("/dev/dsp")

Is there something I can do to help fix this?
I know I have sounds enabled because I used MilkyTracker in this configuration 
but would like to use protrekkr because I find it more suitable for me.

Any ideas?
Thanks!

Original issue reported on code.google.com by seamonke...@gmail.com on 5 Jun 2011 at 1:27

GoogleCodeExporter commented 8 years ago
Did you try to install OSS (like "sudo apt-get install alsa-oss" or something 
like that ?)

Original comment by hhhikr@gmail.com on 5 Jun 2011 at 4:00

GoogleCodeExporter commented 8 years ago
I just did, but still have the same error.
Thanks for the quick response :)

Original comment by seamonke...@gmail.com on 5 Jun 2011 at 8:52

GoogleCodeExporter commented 8 years ago
Try to install alsa packets like:
alsa-base alsa-oss alsa-utils gstreamer0.10-alsa gstreamer0.8-alsa 
libpt-plugins-alsa

and configure it (root):
alsaconf
alsamixer
alsactl store

and make sure your user name is in /etc/group
(cat /etc/group | grep audio)

or maybe it's something else i don't know,
I'm using Ubuntu and everything runs smoothly here.

Original comment by hhhikr@gmail.com on 6 Jun 2011 at 12:08

GoogleCodeExporter commented 8 years ago
hello there,
I'm having the same error, I have lubuntu 64 bit 11.10 oneiric installed.
I have a m-audio audiophile 2496 board.
Problem is I don't have /dev/dsp.
I searched into it little bit, it seems I have to modprobe snd-pcm-oss.
I don't have module snd-pcm-oss either.
as I understand these modules are built into the newer kernels, so they're not 
modprobed anymore.
It would be great if you could make a new version for us.
best regards,
Arda

Original comment by akaradu...@gmail.com on 19 Dec 2011 at 3:37

GoogleCodeExporter commented 8 years ago
nevermind, softlinking my soundcard at /dev/snd/... to /dev/dsp solved the 
problem.
thanks for the great software !

Original comment by akaradu...@gmail.com on 19 Dec 2011 at 4:05

GoogleCodeExporter commented 8 years ago
If I understood this solution better, I bet I could also solve my problem which 
is that ProTrekkr always runs on my bad soundcard and ignores my good 
soundcard.  All my other software recognizes the good soundcard as the default, 
because of something I configured in alsa, but somehow ProTrekkr is not getting 
the memo about which card to use.  I don't know enough about Linux to discern 
which of the million Google hits I'm getting about multiple-soundcard 
alsa-vs.-oss problems is relevant, so I don't dare to mess with the contents of 
/dev yet.  Obviously this isn't a defect in ProTrekkr, but it'd be nice to have 
a workaround in the docs/faq somewhere.

Original comment by thomasj...@gmail.com on 28 Jan 2012 at 7:18

GoogleCodeExporter commented 8 years ago
Hooray, I dared to mess with /dev and fixed the problem.  
First I tried blacklisting snd_hda_intel (the Bad Soundcard) in 
modprobe.d/blacklist.conf - after that protrekkr wouldn't start at all, which 
turns out to be because /dev/dsp had disappeared.  But /dev/dsp1 was still 
there (hmm, that must be my Good Soundcard), so 
$ln -s /dev/dsp1 /dev/dsp 
all happiness!  This tracker is awesome!

Original comment by thomasj...@gmail.com on 28 Jan 2012 at 3:16

GoogleCodeExporter commented 8 years ago
i'm rocking on ubuntu 12.04. presently, the softlinking solution suggested 
above doesn't work for me. the PulseAudio OSS Wrapper (padsp) is the workaround 
i found works. invoke as follows

$padsp ptk_linux

Original comment by sefu.ful...@gmail.com on 17 Jul 2012 at 4:52