| Thanks Steven. Works perfect now. I don't think there is any need for
me to use the CsoundObj class as I really only need straightforward
playback although I should probably take a look anyway.
On 1 October 2014 20:18, Steven Yi wrote:
> Since you're using AndroidCsound directly, you'll need to call:
>
> ((AndroidCsound)csound).setOpenSlCallbacks();
>
> (This gets done for you automatically if using CsoundObj)
>
>
> On Wed, Oct 1, 2014 at 11:12 AM, Rory Walsh wrote:
>> I have an app that seems to be building and running fine. PerformKSMPS
>> is doing it's thing, but I've no audio output? I'm sure I'm missing
>> something simple. My thread function is lifted from the java API
>> examples:
>>
>> String orc = "sr = 44100\n"
>> + "ksmps = 32\n"
>> + "nchnls = 2\n"
>> + "0dbfs = 1\n\n"
>> + "instr 1\n"
>> + "aout vco2 0.5, 440\n"
>> + "outs aout, aout\n"
>> + "endin";
>>
>> String sco = "i1 0 1";
>>
>> Csound c = new AndroidCsound();
>> c.SetOption("-odac");
>> c.CompileOrc(orc);
>> c.ReadScore(sco);
>> c.Start();
>>
>> while (c.PerformKsmps() == 0) {
>> Log.d("============", "PerfKSMPS");
>> }
>> c.Stop();
>>
>> Sorry, my only other venture into Android was using the JNI. This is
>> my first java attempt.
>>
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |