| I have the following method in Csoundo which is called when users are
using the csnd interface:
public int getTable(SWIGTYPE_p_p_double tablePtr, int i) {
if (!compiledOK) return 0;
return csound.GetTable(tablePtr, i);
}
I'd like to overload it so that when they are using the android
interface it will called androidcsound::GetTable()* which expects a
float pointer, but my Java skills aren't the best. I want to cast
"csound" as type (AndroidCsound) so I can access the
androidcsound::GetTable() method. I've tried various means of casting
but none of them seem to work, for instance:
public int getTable(SWIGTYPE_p_float tablePtr, int i) {
if (!compiledOK) return 0;
return ((AndroidCsound.class.cast(csound).GetTable(tablePtr, i);
}
The above gives me a build error because the GetTable() method it is
trying to access is still from csnd, and not androidcsound? Am I
trying something impossible here. Is it just by pure chance we've
gotten this far using two different interfaces interchangeably?
yours,
Confused in Java Land.....
*Apologies for using the C++ scope resolution operator, I'm not sure
what this is in Java!
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |