I started using the Superpowered native SDK for my music player app project but I get stuck passing a method to java from the End-Of-File event in the SuperpoweredAdvancedAudioPlayer callback. Please pardon me if I am doing it all wrong as I am new to using the native JNI C side of Android. Any attempt or help is much appreciated. Thank you in advance.
static void playerEventCallbackA(void *clientData, SuperpoweredAdvancedAudioPlayerEvent event, void *value) {
SuperpoweredAdvancedAudioPlayer *playerA = *((SuperpoweredAdvancedAudioPlayer **)clientData);
if (event == SuperpoweredAdvancedAudioPlayerEvent_LoadSuccess) {
}else if (event == SuperpoweredAdvancedAudioPlayerEvent_EOF && !playerA->looping) {
*The event to notify Java for end of file takes place here.
Please help to suggest any line of code or method that can notify
Android when this event kicks in. Personally, I have searched online,
all I found similar was an "Interface" method on java side which
I have no idea about. Please help*
}else if (event == SuperpoweredAdvancedAudioPlayerEvent_LoadError) {
delete playerA;
}
}