Hi,
I'm trying to write a Winamp plugin in Java with use of JNI.
this is my JavaNative class:
But when I make a call to playPause() in Java it doesn't
i DO get the message "jni call" in my command prompt.
Anyone has a clue on what I am doing wrong?
Thanks,
Theepot
I'm trying to write a Winamp plugin in Java with use of JNI.
this is my JavaNative class:
this is the (important) code in gen_wmpTest:code:
public class JavaNative
{
static
{
System.load("D:\\Applications\\Winamp\\Plugins\\gen_wmpTest.dll");
}
public static native void playPause();
}
When I configure my plugin in Winamp it will start playing (as it should).code:
void config()
{
// invoked when plugin is configured
SendMessage(plugin.hwndParent, WM_WA_IPC, 0, IPC_STARTPLAY);
}
JNIEXPORT void JNICALL Java_JavaNative_playPause(JNIEnv *env, jclass cls)
{
printf("jni call\n");
SendMessage(plugin.hwndParent, WM_WA_IPC, 0, IPC_STARTPLAY);
}
But when I make a call to playPause() in Java it doesn't
i DO get the message "jni call" in my command prompt.
Anyone has a clue on what I am doing wrong?
Thanks,
Theepot
Comment