Пример #1
0
JNIEXPORT void JNICALL Java_com_ssb_droidsound_plugins_VICEPlugin_N_1unload(JNIEnv *env, jclass cl)
{
   /* Selecting this tune unloads some psid-related structures.
    * Unfortunately to us, there are a large number of other things
    * that are statically allocated in VICE codebase. */
    psid_set_tune(-1);
}
Пример #2
0
JNIEXPORT jboolean JNICALL Java_com_ssb_droidsound_plugins_VICEPlugin_N_1setTune(JNIEnv *env, jclass cl, jint tune)
{
    psid_set_tune(tune);
    
    c64_song_init();
    
    return true;
}
Пример #3
0
void machine_play_psid(int tune)
{
    psid_set_tune(tune);
}