soloud
soloud copied to clipboard
AY load wrappers missing from C API.
The C API appears to be missing the load functions for the new AY audio source.
Maybe it needs something like this? -
int Ay_load(void * aClassPtr, const char * aFilename)
{
Ay * cl = (Ay *)aClassPtr;
return cl->load(aFilename);
}
int Ay_loadMem(void * aClassPtr, const unsigned char * aMem, unsigned int aLength)
{
Ay * cl = (Ay *)aClassPtr;
return cl->loadMem(aMem, aLength, false, true);
}
int Ay_loadMemEx(void * aClassPtr, const unsigned char * aMem, unsigned int aLength, int aCopy, int aTakeOwnership)
{
Ay * cl = (Ay *)aClassPtr;
return cl->loadMem(aMem, aLength, !!aCopy, !!aTakeOwnership);
}
int Ay_loadFile(void * aClassPtr, File * aFile)
{
Ay * cl = (Ay *)aClassPtr;
return cl->loadFile(aFile);
}