Csound Csound-dev Csound-tekno Search About

[Cs-dev] Android and Opcode Libs

Date2013-06-01 17:53
FromSteven Yi
Subject[Cs-dev] Android and Opcode Libs
Hi All,

I saw a request ticket regarding the signal flow opcodes and CSDPlayer
for Android and wanted to raise the question about API for setting
OPCODE6DIR.  What I'm imagining is this:

1. CsoundObj has a method called setOpcode6Dir(String path).  The host
app could then set that to a path within the application's resource
path.
2. CsoundObj sets this value for the Csound class to load .so's.

The tricky thing I see about this is that we have to worry about
different opcode lib architectures.  I don't think there are fat
binaries, so we'd have to have folders like armv7-a, mips, intel, and
then put libraries in their to cover all the bases.  I'd say, probably
don't need armv5 except for testing in an emulator, and mips really
doesn't have that many devices using it.  Intel is interesting as
there's speculation that the next Samsung Galaxy Tab 10.1 is going to
be using an intel processor, so we may have to support that.

For the CSDPlayer app, I think the design should be we have a folder
in the project in res/raw/opcodes.  In GIT, we can have that be empty.
 Users then can populate that folder with whatever binary .so's they
want to add for their project.

This is just some quick design, so if anyone has better options here
please chime in.

Thanks!
steven

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-06-01 18:14
FromVictor Lazzarini
SubjectRe: [Cs-dev] Android and Opcode Libs
It sounds good to me.
On 1 Jun 2013, at 17:53, Steven Yi wrote:

> Hi All,
> 
> I saw a request ticket regarding the signal flow opcodes and CSDPlayer
> for Android and wanted to raise the question about API for setting
> OPCODE6DIR.  What I'm imagining is this:
> 
> 1. CsoundObj has a method called setOpcode6Dir(String path).  The host
> app could then set that to a path within the application's resource
> path.
> 2. CsoundObj sets this value for the Csound class to load .so's.
> 
> The tricky thing I see about this is that we have to worry about
> different opcode lib architectures.  I don't think there are fat
> binaries, so we'd have to have folders like armv7-a, mips, intel, and
> then put libraries in their to cover all the bases.  I'd say, probably
> don't need armv5 except for testing in an emulator, and mips really
> doesn't have that many devices using it.  Intel is interesting as
> there's speculation that the next Samsung Galaxy Tab 10.1 is going to
> be using an intel processor, so we may have to support that.
> 
> For the CSDPlayer app, I think the design should be we have a folder
> in the project in res/raw/opcodes.  In GIT, we can have that be empty.
> Users then can populate that folder with whatever binary .so's they
> want to add for their project.
> 
> This is just some quick design, so if anyone has better options here
> please chime in.
> 
> Thanks!
> steven
> 
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net