在Android手机运行的Ubuntu12.04不能播放音乐,请教高人如何解决?

u010447053 2014-11-26 02:53:15
使用Linux on Android的开源项目给Android手机安装Ubuntu 12.04,用VNC显示。在Ubuntu内不能播放音频,试了如下方法还是无效(http://forum.xda-developers.com/showthread.php?t=2420586),请教如何解决这个问题?(Android为4.3内核)

另外疑问:
在Android内运行的Ubuntu 12.04是否能够使用Android内的驱动?

尝试方法:
this is a demo.a friend told me about this method.my device is new nexus 7(2013)
I will make a tutorial on xda-developers.
make a audio server on android.and ubuntu send the voice to android.the audio server play the voice.
this method is not real time,have delay.when play music,parse the music,it didn't parse immediately ,go on play about 10 seconds,and when resume ,the music is played from later seconds.

1.unzip the android file.7z, on android install the IRB.apk file.
run IRB,then sdcard have a directory jruby, audioserver.12.rb put here.
go to IRB,find scripts,select audioserver.12.rb,and execute

2.in ubuntu: install socat and perl,use "apt-get install socat " and "apt-get install perl"
3.unzip asoundrc.7z ,put .asoundrc into /root,
In .asoundrc uncomment this line:
pcm.!default "myfifo"
4.unzip audiofifoloop.1.tar,put audiofifoloop somewhere, To allow multiple ALSA applications, can configure
audiofifoloop. Find these two lines at the beginning:
$multi = 0;
$sleep = 1;
Set $multi to 1 and $sleep to 0.
make it executeable,and run it

then you can "aplay *.wav" in terminal,check is ok?
and can install smplayer to play music ,make sure the audio driver select alsa.
can play video in youtube but only html5.I played some but didn't smooth.

android file.7z

audiofifoloop.1.tar

asoundrc.7z

...全文
179 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧