Very high ksmps. Here I can use ksmps=32, -b256 -B1024, on the Nexus & Samsung tablets.
Latency is not great, better on the Nexus.


----- Original Message -----
From: Michael Gogins <michael.gogins@gmail.com>
Date: Tuesday, December 16, 2014 5:52 pm
Subject: Re: [Cs-dev] Csound in Android 5
To: Developer discussions <csound-devel@lists.sourceforge.net>

> On Android 4.4 I use ksmps=960, -b1920, -B3840 --sample-accurate.
> Latency is bad, but performance is OK.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Tue, Dec 16, 2014 at 9:53 AM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie> wrote:
> > What version of Android is this?
> >
> > I would think that -b can be lowered down to the ksmps value,
> but I am not sure whether that would help.
> >
> > I have to look at the flag you mentioned. I think this is
> defined by the hw. If the hw does not support it, then it can't
> be set.
> >
> > Victor Lazzarini
> > Dean of Arts, Celtic Studies, and Philosophy
> > Maynooth University
> > Ireland
> >
> >> On 15 Dec 2014, at 17:38, SimonKenny <digithree@gmail.com>
> wrote:>>
> >> Hi Victor
> >>
> >> Thank you for your reply.
> >>
> >> I can replicate your findings that anything less than 1024
> for the hardware
> >> buffer size (-B) gives sound problems. Also you are saying
> then that the
> >> software buffer size (-b) should be no less than 256? And
> should ksmps still
> >> be around 32 or 64?
> >>
> >> I've also noticed that the AUDIO_OUTOUT_FAST_FLAG is not
> being accepted by
> >> the AudioTrack library. Here's part of a log:
> >> 12-15 16:15:34.113: D/CsoundObj(23005): --Csound version 6.04
> (float>> samples) Dec  1 2014
> >> 12-15 16:15:34.113: D/CsoundObj(23005): graphics suppressed, ascii
> >> substituted
> >> 12-15 16:15:34.113: D/CsoundObj(23005): 0dBFS level = 1.0
> >> 12-15 16:15:34.114: D/CsoundObj(23005): orch now loaded
> >> 12-15 16:15:34.114: D/CsoundObj(23005): audio buffered in
> 2048 sample-frame
> >> blocks
> >> 12-15 16:15:34.114: W/libOpenSLES(23005): class OutputMix
> interface 0
> >> requested but unavailable MPH=43
> >> 12-15 16:15:34.118: W/AudioTrack(23005):
> AUDIO_OUTPUT_FLAG_FAST denied by
> >> client
> >> 12-15 16:15:34.123: D/CsoundObj(23005): writing 4096 sample
> blks of 32-bit
> >> floats to dac
> >>
> >> You can see a larger log as well as references to the
> description of the
> >> system, and a link to the code that accepts or denies the
> flag here:
> >> https://docs.google.com/document/d/1g9-
> M8NRrzRkiEVfNZOrQuULVbMKiSaytBJGQAtlCOIE/edit?usp=sharing>>
> >> I'm wondering two thins about this:
> >> (1) Is it problematic if the buffer sizes requested via -B
> and -b command
> >> line flags are different from the  buffer sizes above?
> >> (2) Is the AUDIO_OUTOUT_FLAG_FAST denial very bad for latency or
> >> inconsequential?
> >>
> >> By the way, my Nexus 7 2013 edition can update to Android 5,
> if you have
> >> access to one this will work.
> >>
> >>
> >> Thanks for your time
> >>
> >>
> >>
> >> --
> >> View this message in context:
> http://csound.1045644.n5.nabble.com/Csound-in-Android-5-
> tp5739058p5739274.html>> Sent from the Csound - Dev mailing list
> archive at Nabble.com.
> >>
> >> --------------------------------------------------------------
> ----------------
> >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> >> from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards>> with Interactivity, Sharing, Native Excel Exports,
> App Integration & more
> >> Get technology previously reserved for billion-dollar
> corporations, FREE
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk>> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> > ---------------------------------------------------------------
> ---------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards> with Interactivity, Sharing, Native Excel Exports,
> App Integration & more
> > Get technology previously reserved for billion-dollar
> corporations, FREE
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk> _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> -----------------------------------------------------------------
> -------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and
> Dashboardswith Interactivity, Sharing, Native Excel Exports, App
> Integration & more
> Get technology previously reserved for billion-dollar
> corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> 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,
National University of Ireland, Maynooth