Hi khim,I am not supposed to use ppapi's ,i should use only ALSA as per customer requirement.
My job is to call Alsa api in Native client and use the output of Alsa api i will plot graph in HTML using javascript.I cant find anything useful about this...Realy if there is no way to call ALSA from Nacl?
thank you
On Tuesday, July 21, 2015 at 6:01:41 PM UTC+5:30, khim wrote:The whole point of NaCl, it's raison d'être is the ability to run native CPU-dependent code WITHOUT the ability to access the underlaying OS APIs. If you'll find a way to access ALSA from NaCl on ChromeOS then it'll be priority 0 security bug which will be fixed ASAP. E.g. with ALSA API you'll be able to silently capture audio input which is most defenitely not something random website should be able to do.If your goal is to play sound then you could use PPAPI Audio:https://code.google.com/p/chromium/codesearch#chromium/src/native_client_sdk/src/examples/api/audio/If your goal is capture audio input then you could use PPAPI MediaStream (but this is only for installable apps with the appropriate permissions, not for the PNaCl apps on the open web):
https://code.google.com/p/chromium/codesearch#chromium/src/native_client_sdk/src/examples/api/media_stream_audio/On Tue, Jul 21, 2015 at 3:05 PM, <ananthith...@gmail.com> wrote:Hi all,I am trying to access Alsa api's so i include <alsa/asoundlib.h> in part2 example in pepper43/gettingstarted tutorial.when i run "make TOOLCHAIN=linux" it compiled successfully but when i try to run "make" for TOOLCHAIN=newlib/glibc /pnacl it gives error like <alsa/asoundlib.h> no such file or directory.Though asoundlib.h located in usr/include/alsa directory in linux so that linux toolchain found that header but Nacl/Pnacl toolchain cant able to find that header.Though Linux toolchain only for debugging purpose and plugin .so generated by linux toolchain only be used under linux only.In my case i have to run my application on CHROMEOS,so i should compile only in Nacl/pnacl toolchain.i dont know where to start.kinly help me..
--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
I have *.so file which is compiled in linux. I need to access api in this *.so file from nacl. How to Link this linux *.so file with nacl? Is it possible?
Hi Khim,I have *.so file which is compiled in linux. I need to access api in this *.so file from nacl.
How to Link this linux *.so file with nacl? Is it possible?
Hi khim,
Hi khim,Is it possible to access ALSA in android NDK toolchain?
Hi khim,Thank You for your reply and tell me how is it possible with root access devices.Kindly share your thoughts.