Csound Csound-dev Csound-tekno Search About

[Csnd] Csound for Android cross compile

Date2023-08-17 21:25
From"Jeanette C."
Subject[Csnd] Csound for Android cross compile
Hey hey,
I'm thinking about compiling Csound for Android. The question is: taking the 
current git repo will this include a lot of the latest Csound code or was 
there a lot of system specific porting of code involved for the Android OS.

If a new build will help, I'm willing to give it a go. If further development 
is required, I'm unfortunately unsuited to the task.

Best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You know I'm one of a kind,
There'll never be another me <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2023-08-17 21:32
FromDave Seidel
SubjectRe: [Csnd] Csound for Android cross compile
Mike Gogins has done this: https://github.com/gogins/csound-android

On Thu, Aug 17, 2023 at 4:25 PM Jeanette C. <julien@mail.upb.de> wrote:
Hey hey,
I'm thinking about compiling Csound for Android. The question is: taking the
current git repo will this include a lot of the latest Csound code or was
there a lot of system specific porting of code involved for the Android OS.

If a new build will help, I'm willing to give it a go. If further development
is required, I'm unfortunately unsuited to the task.

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You know I'm one of a kind,
There'll never be another me <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2023-08-17 21:34
FromDave Seidel
SubjectRe: [Csnd] Csound for Android cross compile
Sorry, I did not read very carefully. :-(

On Thu, Aug 17, 2023 at 4:32 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Mike Gogins has done this: https://github.com/gogins/csound-android

On Thu, Aug 17, 2023 at 4:25 PM Jeanette C. <julien@mail.upb.de> wrote:
Hey hey,
I'm thinking about compiling Csound for Android. The question is: taking the
current git repo will this include a lot of the latest Csound code or was
there a lot of system specific porting of code involved for the Android OS.

If a new build will help, I'm willing to give it a go. If further development
is required, I'm unfortunately unsuited to the task.

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You know I'm one of a kind,
There'll never be another me <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2023-08-17 22:13
FromST Music
SubjectRe: [Csnd] Csound for Android cross compile
Hi Jeanette. 

A new build would be great!

As an extensive user of Csound for Android I need to point out there are 2 issues.

One, yes, unfortunately it's missing many of the new Csound features/opcodes.

The larger issue is crashing. I have used it on 4 devices, a Samsung J7, S6, S20 FE and an Acer tablet all of which experience the exact same issue: when csd's are played, even extremely simple one oscil instr files, it will play once, maybe twice. The next time one attempts to play the csd it crashes.

In a two hour editing session it will generally crash many dozens of times. If I'm currently editing, I make a change to say a variable value, hit play, listen to the result. Change the value, hit play again... crash. Rinse & repeat, sometimes two or three times in one minute. 

It's quite frustrating but I have no computer so I just live with it (and occasionally tear out a clump of hair or two). And given my love of Csound & the lack of any similar options for Android (no PureData editor/player etc.) it's the only option I have.

A four second or even one hour file will play fine. Once. But try to play again? Maybe once more, if I'm extremely lucky three times then crash. FWIW this behavior includes playing manual & FLOSS examples and any file I download or is shared with me, so I know it's not an issue with my own codes.

I'm no expert but suspected it's possibly the way it interacts with the drivers or buffer issues. It's all far beyond my pay grade.

I have tried using both available audio drivers - OpenSL ES and the newer AAudio - to no avail.

So while I would really (x4) like to try/use the newer opcodes etc. it's the crashing that I would love to see resolved.

Best as always and thanks for considering taking on this task (even if it doesn't resolve the crashing issues), hopefully my reply won't discourage you. Perhaps other Android users don't have this issue.

Scott

On Thu, Aug 17, 2023, 4:25 p.m. Jeanette C. <julien@mail.upb.de> wrote:
Hey hey,
I'm thinking about compiling Csound for Android. The question is: taking the
current git repo will this include a lot of the latest Csound code or was
there a lot of system specific porting of code involved for the Android OS.

If a new build will help, I'm willing to give it a go. If further development
is required, I'm unfortunately unsuited to the task.

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You know I'm one of a kind,
There'll never be another me <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2023-08-17 22:37
FromST Music
SubjectRe: [Csnd] Csound for Android cross compile
P.S.  something I forgot to mention: if, instead of playing a file, I render it to wav from Csound and listen to that in a different app, I can render the csd numerous times. It does not crash. This is why I somewhat suspect driver/buffer issues.

But this doesn't make the process any less cumbersome. It takes just as long long to switch between the apps & load the new wav file as it does to reboot Csound & reload rhe csd.

Best,
Scott

On Thu, Aug 17, 2023, 5:13 p.m. ST Music <stunes6556@gmail.com> wrote:
Hi Jeanette. 

A new build would be great!

As an extensive user of Csound for Android I need to point out there are 2 issues.

One, yes, unfortunately it's missing many of the new Csound features/opcodes.

The larger issue is crashing. I have used it on 4 devices, a Samsung J7, S6, S20 FE and an Acer tablet all of which experience the exact same issue: when csd's are played, even extremely simple one oscil instr files, it will play once, maybe twice. The next time one attempts to play the csd it crashes.

In a two hour editing session it will generally crash many dozens of times. If I'm currently editing, I make a change to say a variable value, hit play, listen to the result. Change the value, hit play again... crash. Rinse & repeat, sometimes two or three times in one minute. 

It's quite frustrating but I have no computer so I just live with it (and occasionally tear out a clump of hair or two). And given my love of Csound & the lack of any similar options for Android (no PureData editor/player etc.) it's the only option I have.

A four second or even one hour file will play fine. Once. But try to play again? Maybe once more, if I'm extremely lucky three times then crash. FWIW this behavior includes playing manual & FLOSS examples and any file I download or is shared with me, so I know it's not an issue with my own codes.

I'm no expert but suspected it's possibly the way it interacts with the drivers or buffer issues. It's all far beyond my pay grade.

I have tried using both available audio drivers - OpenSL ES and the newer AAudio - to no avail.

So while I would really (x4) like to try/use the newer opcodes etc. it's the crashing that I would love to see resolved.

Best as always and thanks for considering taking on this task (even if it doesn't resolve the crashing issues), hopefully my reply won't discourage you. Perhaps other Android users don't have this issue.

Scott

On Thu, Aug 17, 2023, 4:25 p.m. Jeanette C. <julien@mail.upb.de> wrote:
Hey hey,
I'm thinking about compiling Csound for Android. The question is: taking the
current git repo will this include a lot of the latest Csound code or was
there a lot of system specific porting of code involved for the Android OS.

If a new build will help, I'm willing to give it a go. If further development
is required, I'm unfortunately unsuited to the task.

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You know I'm one of a kind,
There'll never be another me <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here