Csound Csound-dev Csound-tekno Search About

[Cs-dev] Android Csound 6.04 String chnexport gives garbage

Date2014-12-02 01:01
FromSimonKenny
Subject[Cs-dev] Android Csound 6.04 String chnexport gives garbage
Hi all

I'm using Csound in an Android app I've been developing. I use software
buses to tell the host app information about the the CSD, such as the tempo
and name of the CSD. However, after updating to use Csound v6.04 I'm now
only getting garbage in from string channels. The numeric channels work fine
still, and I'm not using any audio channels.

I'm using chnexport as follows in the CSD:

gSname = "Shoe-gaze Harp"
gSname chnexport "name", 2

In my host app, I use, for example (in Java):

io_name = csound.getInputChannelPtr( "name",
controlChannelType.CSOUND_STRING_CHANNEL );
String name = io_name.GetStringValue();

Does anyone use the Android Csound API with strings? Any ideas? Also I
should note that I found the string software bus channels to sometimes give
me garbage in v6.03 also but irregularly. Now it is constant.


Thanks for your time



--
View this message in context: http://csound.1045644.n5.nabble.com/Android-Csound-6-04-String-chnexport-gives-garbage-tp5738943.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=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net