USB Sound plays only some sounds? [solved]
13 posts
• Page 1 of 1
- Posts: 347 Silent Observer
- Joined: 08 Aug 2013
#1
I've been using the USB sound device on my laptop (ca. 1998 Pentium II 300 MHz, 288 MiB RAM, antiX 13.2 Testing) for a week or so now, it's been working fine to play MP3 files, but I don't have sound in games like gjeweled (otherwise surprisingly playable on a 300 MHz processor), and streamtuner2 makes no sound. The mixer for the USB is very, very simple -- speakers, mic, and auto gain (the latter doesn't seem to even toggle on and off); the USB sound hardware is supposed to support internal midi synthesis (which I think gjeweled uses), and certainly supports playing a bit stream (else it wouldn't work in xmms, which is what plays MP3 by default). What could cause it to work for one thing, and not for another?
Last edited by Silent Observer on 15 Dec 2013, 16:50, edited 1 time in total.
- Posts: 850 fatmac
- Joined: 26 Jul 2012
#2
You may need 'jack', an audio program, for midi & the like. It's a program that 'links' various sound devices.
- Posts: 630 Eino
- Joined: 12 Oct 2012
#3
Aconnect is an audio connection kit for alsa that works similar to jack, and takes less resources.
- Posts: 347 Silent Observer
- Joined: 08 Aug 2013
#4
I'll look at aconnect when I have time (that won't be this evening). Thanks for the suggestions, both of you. : )
- Posts: 347 Silent Observer
- Joined: 08 Aug 2013
#5
Okay, aconnect is apparently part of the alsa-utils package, already installed with antiX 13; I download aconnectgui, and also grabbed something called qasconfig. I found aconnectgui very, very simple, at least on the laptop with the USB sound device -- there are"timer" and"announcer", two"midi 0" inputs and two"midi 0" outputs. Since I know almost nothing about midi, I connected timer and announcer to one input each (acconectgui combined them), and tested gejeweled. I couldn't hear anything, but I was having to work with the the surf sound file playing; my girlfriend was asleep and stopping the surf suddenly would wake her. I'll try this again when I can stop the surf (likely in the morning).
Conversely, qasconfig (a gui ALSA configuration utility) looks very complete, but it's also very cryptic; I had no idea what I was seeing at first, eventually figuring out it was showing all the possibilities for alsa-base.conf entries, of which I know the function of virtually none -- although based on what it shows, I'm pretty sure it could solve my problem if I knew how to use it.
Conversely, qasconfig (a gui ALSA configuration utility) looks very complete, but it's also very cryptic; I had no idea what I was seeing at first, eventually figuring out it was showing all the possibilities for alsa-base.conf entries, of which I know the function of virtually none -- although based on what it shows, I'm pretty sure it could solve my problem if I knew how to use it.
- Posts: 850 fatmac
- Joined: 26 Jul 2012
#6
Likely there are 'man pages' for them,
Should give you options to look at, though likely to be a bit cryptic, might help.
Code: Select all
man 'progname'
- Posts: 630 Eino
- Joined: 12 Oct 2012
#7
Try the following,as root.
Run
Then Run
Then Run
Run
This should show the outputs of the usb sound card.
I almost forgot this.
Check for the following in /.asoundrc if you don't have it add it.
Some hardware needs intervention to get installed.
Run
Code: Select all
# alsa force-unload
Code: Select all
# modprobe snd-usb-audio ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss
Code: Select all
# alsa reload
Code: Select all
# aplay -L
I almost forgot this.
Check for the following in /.asoundrc if you don't have it add it.
Code: Select all
pcm.usb-audio {
type hw
card 0
}
ctl.usb-audio {
type hw
card 0
}
- Posts: 347 Silent Observer
- Joined: 08 Aug 2013
#8
Running the suggested commands:
Are you suggesting that there should be a hidden file .asoundrc in the root folder? I wouldn't expect to find it there (and don't) -- or would that be in my user home folder, where hidden files are frequently to be found (but that one isn't)? Or in [/]etc where many configuration files hang out?
Edit -- well, regardless of .asoundrc (which I still haven't found) I now have music and effects sound in gjeweled, but still nothing from streamtuner2. Also, how can I make whatever that did, permanent?
Here's what's loading right now, before running the commands above.Eino wrote:Try the following,as root.
RunThen RunCode: Select all
# alsa force-unload
Then RunCode: Select all
# modprobe snd-usb-audio ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss
RunCode: Select all
# alsa reload
This should show the outputs of the usb sound card.Code: Select all
# aplay -L
I almost forgot this.
Check for the following in /.asoundrc if you don't have it add it.
Some hardware needs intervention to get installed.Code: Select all
pcm.usb-audio { type hw card 0 } ctl.usb-audio { type hw card 0 }
Code: Select all
# lsmod | grep snd
snd_seq_dummy 992 2
snd_usb_audio 73509 4
snd_usbmidi_lib 12785 1 snd_usb_audio
snd_hwdep 4064 1 snd_usb_audio
snd_seq_midi 3473 0
snd_seq_midi_event 3645 1 snd_seq_midi
snd_rawmidi 12723 2 snd_usbmidi_lib,snd_seq_midi
snd_pcm 50454 2 snd_usb_audio
snd_page_alloc 5015 1 snd_pcm
snd_seq 34663 5 snd_seq_midi_event,snd_seq_dummy,snd_seq_midi
snd_seq_device 3890 4 snd_seq,snd_rawmidi,snd_seq_dummy,snd_seq_midi
snd_timer 12034 3 snd_pcm,snd_seq
snd 36700 16 snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_seq_device,snd_seq_dummy,snd_seq_midi
soundcore 3447 1 snd
Code: Select all
root@Little-Luddite:/home/dqualls# alsa force-unload
Unloading ALSA sound driver modules: snd-seq-dummy snd-usb-audio snd-usbmidi-lib snd-hwdep snd-seq-midi snd-seq-midi-event snd-rawmidi snd-pcm snd-page-alloc snd-seq snd-seq-device snd-timer (failed: modules still loaded: snd-seq-dummy snd-usb-audio snd-usbmidi-lib snd-hwdep snd-rawmidi snd-pcm snd-page-alloc snd-seq snd-seq-device snd-timer).
root@Little-Luddite:/home/dqualls# modprobe snd-usb-audio
root@Little-Luddite:/home/dqualls# modprobe snd-pcm-oss
root@Little-Luddite:/home/dqualls# modprobe snd-mixer-oss
root@Little-Luddite:/home/dqualls# modprobe snd-seq-oss
root@Little-Luddite:/home/dqualls# alsa reload
Unloading ALSA sound driver modules: snd-seq-oss snd-seq-midi-event snd-pcm-oss snd-mixer-oss snd-seq-dummy snd-usb-audio snd-usbmidi-lib snd-hwdep snd-rawmidi snd-pcm snd-page-alloc snd-seq snd-seq-device snd-timer (failed: modules still loaded: snd-seq-dummy snd-usb-audio snd-usbmidi-lib snd-hwdep snd-rawmidi snd-pcm snd-page-alloc snd-seq snd-seq-device snd-timer).
Loading ALSA sound driver modules: snd-seq-oss snd-seq-midi-event snd-pcm-oss snd-mixer-oss snd-seq-dummy snd-usb-audio snd-usbmidi-lib snd-hwdep snd-rawmidi snd-pcm snd-page-alloc snd-seq snd-seq-device snd-timer.
root@Little-Luddite:/home/dqualls# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
sysdefault:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Front speakers
surround40:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
Edit -- well, regardless of .asoundrc (which I still haven't found) I now have music and effects sound in gjeweled, but still nothing from streamtuner2. Also, how can I make whatever that did, permanent?
- Posts: 630 Eino
- Joined: 12 Oct 2012
#9
The driver needed was added to the kernel now, so every time you boot with the usb sound plugged in it should load the needed drivers. When you boot with out the usb sound plugged in it will revert back to the original sound card.Silent Observer wrote:Eino wrote: Edit -- well, regardless of .asoundrc (which I still haven't found) I now have music and effects sound in gjeweled, but still nothing from streamtuner2. Also, how can I make whatever that did, permanent?
- Posts: 2,238 dolphin_oracle
- Joined: 16 Dec 2007
#10
some of the older games (including gweled) require oss-compat (oss being an older sound system for linux, and oss-compat being libraries to make oss sound compatable to alsa). I suspect modprobing those oss drivers did the trick. to make room on the iso, oss-compat was left out of 13.2, but it is still installable with a quick apt-get install oss-compat.
at least for me, that's all I needed for sound in the games.
for some reason the steamtuner configuration points to audacious to play the streams. This needs changed in edit>preferences to xmms, or you need to install audacious, take your pick.
at least for me, that's all I needed for sound in the games.
for some reason the steamtuner configuration points to audacious to play the streams. This needs changed in edit>preferences to xmms, or you need to install audacious, take your pick.
- Posts: 347 Silent Observer
- Joined: 08 Aug 2013
#11
Kewl!!
Streamtuner works fine once I know I need to tell it to play through an app I actually have. I think audacity is beyond my laptop (300 MHz Pentium II and 288 MiB RAM), but xmms works just fine; with streamtuner and xmms running, I'm only at 20-25% CPU.
Streamtuner works fine once I know I need to tell it to play through an app I actually have. I think audacity is beyond my laptop (300 MHz Pentium II and 288 MiB RAM), but xmms works just fine; with streamtuner and xmms running, I'm only at 20-25% CPU.
Eino, the reason I have the USB sound on my laptop is because the internal NeoMagic sound hardware has, as far as I've been able to find, no Linux driver. I've seen a package for using Windows drivers in Linux, but ndiswrapper seems to be oriented mainly toward locked-down wifi devices, not sound chips -- though if it'd work (or there's a more general solution to that need), I'd prefer it since it would let me use the internal speakers and microphone, and the built-in hardware volume control -- much more compatible with roaming with the machine than having to use headphones or plug-in speakers. I've still got the original Windows 98 sound driver on the CD that came with the computer...When you boot with out the usb sound plugged in it will revert back to the original sound card.
- Posts: 630 Eino
- Joined: 12 Oct 2012
#12
I had the same issue with an Yamaha sound card. I tried to load the windows drivers with wine, but that just dose not work ether So now the card just sits on a shelf, along with the windows drivers install disk. Yamaha stopped making , and supporting sound cards, so I don't see drivers in the future for Linux.
I glad everything works now. Someone needs to mark the topic solved.
I glad everything works now. Someone needs to mark the topic solved.
- Posts: 347 Silent Observer
- Joined: 08 Aug 2013
#13
Windows drivers in Wine probably won't work; Wine intercepts all system calls. You might possibly get something for Windows programs running under Wine with the Windows driver (if Wine doesn't also intercept direct hardware writes) but something like ndiswrapper, generalized for all hardware drivers, would probably be a project as big as Wine (it would have to emulate the complete Windows hardare API as well as the undocumented BIOS and system calls for half a dozen versions of Windows and hundreds of BIOS variants). Given a USB sound card was under $2 shipped from Hong Kong, and didn't take much extra effort to get running, I'm happy with what I've got.
I'll mark this solved right now. __{{emoticon}}__
Edit: Hmmm, well, I don't see where to mark the topic"solved" -- perhaps I need assistance from the staff?
I'll mark this solved right now. __{{emoticon}}__
Edit: Hmmm, well, I don't see where to mark the topic"solved" -- perhaps I need assistance from the staff?