在Android手机运行的Ubuntu12.04不能播放音乐,请教高人如何解决?
使用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