| I have posted a new beta 3 for the Csound for Android app, in which
the audio output stream is stopped from a different thread than the
audio callback.
Please let me know if this helps.
Regards,
Mike
-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Sat, May 11, 2019 at 8:22 PM Michael Gogins wrote:
>
> Thanks for your feedback. I have the same problem with your test file.
>
> Oddly enough, I was testing the app with much more complex examples,
> and this problem did not happen.
>
> I believe what's happening is the Oboe stream can't be reliably ended
> from the audio callback thread, which is what my app does. I will
> change the code to spawn a stop call from a different thread.
>
> Thanks! I will post a new beta very soon.
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Sat, May 11, 2019 at 6:58 PM Pete Goodeve wrote:
> >
> > On Fri, May 10, 2019 at 08:37:08PM -0400, Michael Gogins wrote:
> > > I have prepared a new beta release of the Csound for Android app here:
> > >
> > > https://github.com/gogins/csound-extended/releases/tag/v1.3.0beta2
> > >
> > >
> > > Feedback would be most appreciated!
> > >
> > Hi,
> >
> > I installed the above in my Gemini PDA, and it seems mostly to run.
> > However, I hit one basic snag. The first thing I did was to load my
> > standard (very short) basic test/demo file. It plays its 5 notes, but
> > then the app freezes! 'RUN' changes to 'STOP', but clicking on that
> > (after playing ends) has no effect. And the editor is frozen as well.
> > The only recourse is to kill the app. If I click 'STOP' before playing
> > ends, though, it works.
> >
> > I tried saving the MESSAGES screen but that failed too (and froze things).
> > The last thing printed on termination is:
> >
> > "resetting Csound instance"
> >
> > I haven't yet let any of the examples run to completion.
> >
> >
> > Here's the file (as loaded, with all the extraneous stuff):
> >
> >
> >
> >
> >
> > =====================================
> > *** "Close Encounters" ***
> > Original public-domain MIDI borrowed
> > from the MIDIcsv Distribution
> > =====================================
> >
> >
> >
> >
> > # These options select audio output
> > # and suppress displays
> > -odac -d
> >
> >
> >
> >
> > ; Initialize the global variables.
> > sr = 44100 ; Sample Rate
> > kr = 4410 ; Control Rate
> > ksmps = 10 ; Samples/Buffer (sr/kr) -- optional
> > nchnls = 1 ; Mono output
> >
> >
> > ; Sine table here rather than in Score
> > giSine0 ftgen 1, 0, 16384, 10, 1
> >
> >
> > ; Instrument #1 - a basic oscillator.
> > instr 1
> >
> > ; convert pitch input (score param 5) to frequency
> > icps = cpspch(p5)
> >
> > ; create an envelope from amplitude param 4
> > kamp linen p4, 0.01, p3, 0.05
> >
> > ; run the oscillator
> > a1 oscil kamp, icps, giSine0
> > ; and send the wave out
> > out a1
> >
> > endin
> >
> >
> >
> >
> > ; The notes to be played:
> > ;Instr Start Duration Amplitude Pitch (octave.pitchclass)
> > i1 0.000 1.000 8100.00 9.07
> > i1 1.000 1.000 8100.00 9.09
> > i1 2.000 1.000 8100.00 9.05
> > i1 3.000 1.000 8100.00 8.05
> > i1 4.000 1.000 8100.00 9.00
> >
> >
> >
> >
> > |