Can I set up /dev/dsp for USB sound card?


5 posts
by ferrymanr » Tue Aug 21, 2012 6:24 pm
I ahve installed a program that handles audio analysis as a spectrum or or spectogram display. The program is glfer and is in the repository. It appears to run but am unable to select my USB sound card for input. The program seems to require a device such as /dev/dsp to be be created. I have no idea as to how to do this. My USB sound card works perfectly using ALSA. Can anyone help please.
Posts: 61
Joined: Fri Mar 16, 2012 11:09 pm
by ferrymanr » Fri Sep 14, 2012 8:40 am
I found I can get /dev/dsp if I run (as root) 'modprobe snd_pcm_oss' and my applicatiions that require this device now work. However this is a temporary fix and lost on reboot. Where can I place this command to load the module automatically. I guess in one of the many rc scripts, but which?
Thanks
Posts: 61
Joined: Fri Mar 16, 2012 11:09 pm
by Licaon_Kter » Fri Sep 14, 2012 2:24 pm
/etc/rc.local is one place for that command
BFQ+BFS or RT on a RPi? 4'real: https://github.com/licaon-kter/ (source and compiled!)
User avatar
Posts: 240
Joined: Wed Sep 05, 2012 10:12 am
Location: Between the keyboard and the chair.
by ferrymanr » Fri Sep 14, 2012 4:53 pm
Licaon_Kter wrote:/etc/rc.local is one place for that command

Thanks. Now done.
Posts: 61
Joined: Fri Mar 16, 2012 11:09 pm
by Licaon_Kter » Fri Sep 14, 2012 7:25 pm
also you can just add snd_pcm_oss to /etc/modules ;) ( but only use one of the options )
BFQ+BFS or RT on a RPi? 4'real: https://github.com/licaon-kter/ (source and compiled!)
User avatar
Posts: 240
Joined: Wed Sep 05, 2012 10:12 am
Location: Between the keyboard and the chair.