广州linux

当前位置:   网站首页 >> linux

openwrt usb 声卡播放歌曲 路由器直接播放歌曲 h255d usb 声卡

先上图,下面是内容

图片








今天偶然看到一个没用的usb声卡,想到路由器有usb接口,为何不让路由器控制声卡发出声音你呢?
说做就做,要让声卡发声必须路由器得驱动起这个声卡,先说说路由器配置,openwrt  linux 内核2.6.32.59 
记得kmod-usb-audio驱动 和我这个内核好像很相似。于是百度了一下,找到kmod-usb-audio_2.6.32.59-1_ramips.ipk
直接
opag install kmod-input-core_2.6.32.59-1_ramips.ipk
opag install kmod-sound-core_2.6.32.59-1_ramips.ipk
opag installlibid3tag_0.15.1b-3_ramips.ipk
opag install libmad_0.15.1b-3_ramips.ipk 
opag install madplay_0.15.2b-3_ramips.ipk 

装好驱动,下载一首歌曲到根目录
cd /
wget http://xxxxxxxxxxxxxx/1.mp3
//

--------------------------------------------
--------------------------------------------
--------------------------------------------
/www# ls /
--------------------------------------------
bin
dev
etc
lib
mnt
overlay
proc
rom
root
sbin
sys
tmp
usr
var
www
--------------------------------------------
/www# wget http://sc.111ttt.com/up/mp3/288003/2D0F49F6456BA1A6B0981D96CB94C1C5.mp3
--------------------------------------------
--2014-06-14 03:17:36--  http://sc.111ttt.com/up/mp3/288003/2D0F49F6456BA1A6B0981D96CB94C1C5.mp3
Resolving sc.111ttt.com... 60.191.150.49
Connecting to sc.111ttt.com|60.191.150.49|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://stor.vdisk.cn/loadfile/2D/2D0F49F6456BA1A6B0981D96CB94C1C5?key=a86093ab3aca1a5fd9915b0d49280d0c&tt=1402690000&st=04Z41Rt6dDYp6vWt1Gc-Mg&filename=_www.111ttt.com.mp3 [following]
--2014-06-14 03:17:36--  http://stor.vdisk.cn/loadfile/2D/2D0F49F6456BA1A6B0981D96CB94C1C5?key=a86093ab3aca1a5fd9915b0d49280d0c&tt=1402690000&st=04Z41Rt6dDYp6vWt1Gc-Mg&filename=_www.111ttt.com.mp3
Resolving stor.vdisk.cn... 120.192.83.184, 120.192.83.183, 113.12.81.41, ...
Connecting to stor.vdisk.cn|120.192.83.184|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://113.12.81.52/pushfile/1/2D/2D0F49F6456BA1A6B0981D96CB94C1C5?key=a86093ab3aca1a5fd9915b0d49280d0c&tt=1402690000&st=04Z41Rt6dDYp6vWt1Gc-Mg&filename=_www.111ttt.com.mp3 [following]
--2014-06-14 03:17:36--  http://113.12.81.52/pushfile/1/2D/2D0F49F6456BA1A6B0981D96CB94C1C5?key=a86093ab3aca1a5fd9915b0d49280d0c&tt=1402690000&st=04Z41Rt6dDYp6vWt1Gc-Mg&filename=_www.111ttt.com.mp3
Connecting to 113.12.81.52:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3926727 (3.7M) [application/octet-stream]
Saving to: `2D0F49F6456BA1A6B0981D96CB94C1C5?key=a86093ab3aca1a5fd9915b0d49280d0c&tt=1402690000&st=04Z41Rt6dDYp6vWt1Gc-Mg&filename=_www.111ttt.com.mp3'
     0K .......... .......... .
......... .......... ..........  1% 11.7K 5m23s
    50K .......... .........
. .......... .......... ..........  2% 16.8K 4m31s
   100K .......... .......
... .......... .......... ..........  3% 15.0K 4m20s
   150K .......... .......... .......... .
......... ..........  5% 17.8K 4m3s
   200K .......... .......... .......... .......... ..........  6% 21.9K 3m45s
   250K .......... .

//
ls
mv 'ttp://xxxxxxxxxxxxxx/1.mp3' '1.mp3' 
ok 接下来播放歌曲,装上声卡,连接音响
madplay /* 
播放成功 

发表我的评论

Hi,您需要填写昵称和邮箱!

  • 必填项