USB sound - scratchy [ SOLVED ] December 03, 2010 04:05PM |
Registered: 13 years ago Posts: 261 |
# lsusb Bus 001 Device 114: ID 0c76:1607 JMTek, LLC. audio controllerSays "HY554" on the back.
apt-get install alsa-base alsaplayer alsaplayer-text alsa-utils madplay mplayerThen used the following to test sound...
mplayer -ao alsa -msgcolor -cache 64 http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u alsaplayer http://www.moviesoundscentral.com/sounds/harry_potter/urscary.wavI'm an audio noob - anyone have any ideas about how to fix?
Re: USB sound - scratchy December 03, 2010 05:13PM |
Registered: 13 years ago Posts: 261 |
pcm.!default { type plug slave.pcm "softvol" } pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0" period_time 0 period_size 4096 buffer_size 131072 rate 50000 } bindings { 0 0 1 1 } } pcm.dsnooper { type dsnoop ipc_key 1024 slave { pcm "hw:0" channels 2 period_time 0 period_size 4096 buffer_size 131072 rate 50000 } bindings { 0 0 1 1 } } pcm.softvol { type softvol slave { pcm "dmixer" } control { name "Master" card 0 } } ctl.!default { type hw card 0 } ctl.softvol { type hw card 0 } ctl.dmixer { type hw card 0 }
mplayer -ao alsa -msgcolor -cache 128 -playlist http://www.bbc.co.uk/radio1/wm_asx/aod/radio1.asx mplayer -ao alsa -msgcolor -cache 128 http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3uTo fix mplayer volume controls you need to tell it to use Master rather than PCM mixer:
echo 'ao=alsa' >> ~/.mplayer/config echo 'mixer-channel="Master"' >> ~/.mplayer/configTo make everything work after reboot you need to edit /etc/modprobe.d/alsa-base.conf
# Keep snd-usb-audio from beeing loaded as first soundcard options snd-usb-audio index=-2New:
# Allow snd-usb-audio to be loaded as first soundcard options snd-usb-audio index=0
Re: USB sound - scratchy December 03, 2010 05:40PM |
Registered: 13 years ago Posts: 261 |
wget http://yjl.googlecode.com/hg/Bash/iradio chmod +x ./iradio ./iradioI thought you have to be in the UK but apparently not...
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 07:21PM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 08:29PM |
Registered: 13 years ago Posts: 261 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 08:41PM |
Registered: 14 years ago Posts: 92 |
root@debian:/# mplayer -ao alsa -msgcolor -cache 64 http://ww w.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k. m3u. Resolving www.tv-radio.com for AF_INET... Connecting to server www.tv-radio.com[91.197.164.1]: 80... Resolving gisv3.tv-radio.com for AF_INET... Connecting to server gisv3.tv-radio.com[91.197.164.1]: 80... Cache size set to 64 KBytes Playing http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3 . Resolving mp3.live.tv-radio.com for AF_INET... Connecting to server mp3.live.tv-radio.com[91.197.164.3]: 80. .. Name : Fip - 128 - mp3 Website: http://www.fip-radio.com Public : no Bitrate: 128kbit/s Cache size set to 64 KBytes Cache fill: 12.50% (8192 bytes) Audio only file format detected. ============================================================= ============= Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 ICY Info: StreamTitle='';StreamUrl=''; mpg123: Can't rewind stream by 871 bits! AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000- >176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ============================================================= ============= [AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find c ard '0' [AO_ALSA] alsa-lib: conf.c:4170:(_snd_config_evaluate) functi on snd_func_card_driver returned error: No such file or direc tory [AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error ev aluating strings [AO_ALSA] alsa-lib: conf.c:4170:(_snd_config_evaluate) functi on snd_func_concat returned error: No such file or directory [AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error ev aluating name [AO_ALSA] alsa-lib: conf.c:4170:(_snd_config_evaluate) functi on snd_func_refer returned error: No such file or directory [AO_ALSA] alsa-lib: conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory [AO_ALSA] alsa-lib: pcm.c:2190:(snd_pcm_open_noupdate) Unknow n PCM default [AO_ALSA] Playback open error: No such file or directory Failed to initialize audio driver 'alsa' Could not open/initialize audio device -> no sound. Audio: no sound Video: no video Exiting... (End of file)
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 08:49PM |
Registered: 13 years ago Posts: 261 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 09:13PM |
Registered: 13 years ago Posts: 18 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 09:22PM |
Registered: 13 years ago Posts: 261 |
apt-get install usbutilsYou can find packages by doing something like "apt-cache search lsusb"
apt-get update apt-get install alsa-base alsaplayer alsaplayer-text alsa-utils madplay mplayer
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 09:26PM |
Registered: 14 years ago Posts: 92 |
root@debian:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: default [C-Media USB Audio Device ], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 root@debian:~# for x in /proc/asound/{version,cards,devices,timers,pcm}; do echo $x:; cat $x; done /proc/asound/version: Advanced Linux Sound Architecture Driver Version 1.0.23. /proc/asound/cards: 0 [default ]: USB-Audio - C-Media USB Audio Device C-Media USB Audio Device at usb-orion-ehci.0-1.4, full speed /proc/asound/devices: 0: [ 0] : control 16: [ 0- 0]: digital audio playback 24: [ 0- 0]: digital audio capture 33: : timer /proc/asound/timers: G0: system timer : 10000.000us (10000000 ticks) P0-0-0: PCM playback 0-0-0 : SLAVE P0-0-1: PCM capture 0-0-1 : SLAVE /proc/asound/pcm: 00-00: USB Audio : USB Audio : playback 1 : capture 1
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 09:29PM |
Registered: 13 years ago Posts: 18 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 09:43PM |
Registered: 13 years ago Posts: 261 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 10:08PM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy [ SOLVED ] December 03, 2010 11:15PM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy [ SOLVED ] December 04, 2010 12:18AM |
Registered: 13 years ago Posts: 128 |
Re: USB sound - scratchy [ SOLVED ] December 04, 2010 12:25AM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy December 04, 2010 05:46AM |
Registered: 13 years ago Posts: 261 |
echo 'ao=alsa' >> ~/.mplayer/config echo 'mixer-channel="Master"' >> ~/.mplayer/configUse '/' key to decrease, '*' to increase.
Re: USB sound - scratchy December 04, 2010 08:33AM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy [ SOLVED ] December 04, 2010 02:46PM |
Registered: 13 years ago Posts: 18 |
root@debian:~# mplayer -ao alsa -msgcolor -cache 64 http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u. Resolving www.tv-radio.com for AF_INET6... Couldn't resolve name for AF_INET6: www.tv-radio.com Resolving www.tv-radio.com for AF_INET... Connecting to server www.tv-radio.com[91.197.164.1]: 80... Resolving gisv3.tv-radio.com for AF_INET6... Couldn't resolve name for AF_INET6: gisv3.tv-radio.com Resolving gisv3.tv-radio.com for AF_INET... Connecting to server gisv3.tv-radio.com[91.197.165.1]: 80... Cache size set to 64 KBytes Playing http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3. Resolving mp3.live.tv-radio.com for AF_INET6... Couldn't resolve name for AF_INET6: mp3.live.tv-radio.com Resolving mp3.live.tv-radio.com for AF_INET... Connecting to server mp3.live.tv-radio.com[91.197.165.3]: 80... Name : Fip - 128 - mp3 Website: http://www.fip-radio.com Public : no Bitrate: 128kbit/s Cache size set to 64 KBytes Cache fill: 12.50% (8192 bytes) Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 mpg123: Can't rewind stream by 119 bits! AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO_ALSA] alsa-lib: pcm_direct.c:1505:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card [AO_ALSA] Playback open error: No such file or directory Failed to initialize audio driver 'alsa' Could not open/initialize audio device -> no sound. Audio: no sound Video: no video Exiting... (End of file)
Re: USB sound - scratchy [ SOLVED ] December 04, 2010 07:35PM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy [ SOLVED ] December 05, 2010 10:22AM |
Registered: 13 years ago Posts: 261 |
aplay -lTo fix you need to edit /etc/modprobe.d/alsa-base.conf
# Keep snd-usb-audio from beeing loaded as first soundcard options snd-usb-audio index=-2New:
# Allow snd-usb-audio to be loaded as first soundcard options snd-usb-audio index=0Then reboot and all should be good.
Re: USB sound - scratchy [ SOLVED ] December 05, 2010 04:26PM |
Registered: 13 years ago Posts: 261 |
apt-get install streamripper mkdir /root/streamripperConnect streamripper relay to radio station:
streamripper URL -r 8000 -d /root/streamripper/ -ARun mplayer against the relay:
mplayer http://127.0.0.1:8000 # change 127.0.0.1 to dockstar IP if playing on another LAN computerYou can then connect other players on your LAN to the dockstar without wasting bandwidth.
Re: USB sound - scratchy [ SOLVED ] December 05, 2010 07:03PM |
Registered: 14 years ago Posts: 92 |
Re: USB sound - scratchy [ SOLVED ] December 05, 2010 07:52PM |
Registered: 13 years ago Posts: 261 |
mplayer -playlist 'http://yp.shoutcast.com/sbin/tunein-station.pls?id=560860';Not sure about the remote control from Windows thing - I only have one Windows based PC and I just use that for games.
Re: USB sound - scratchy [ SOLVED ] December 05, 2010 08:29PM |
Registered: 13 years ago Posts: 18 |
Re: USB sound - scratchy [ SOLVED ] December 09, 2010 09:28PM |
Registered: 13 years ago Posts: 261 |
Re: USB sound - scratchy [ SOLVED ] December 11, 2010 03:08PM |
Registered: 14 years ago Posts: 92 |
TEN
VFD (cashier's display) via lcdproc December 12, 2010 10:58AM |
Re: USB sound - scratchy [ SOLVED ] December 15, 2010 09:06PM |
Registered: 13 years ago Posts: 261 |
neel
Re: USB sound - scratchy [ SOLVED ] December 16, 2010 12:34AM |