-
-
Notifications
You must be signed in to change notification settings - Fork 445
Open
Labels
questionThis issue is a general question about projectM and the surrounding ecosystem.This issue is a general question about projectM and the surrounding ecosystem.triageThis is a new issue which hasn't been reviewed yet by a staff member.This is a new issue which hasn't been reviewed yet by a staff member.
Description
Please confirm the following points:
- This question is NOT about the Android apps in the Play Store
- I have searched the project page to check if the question was already asked elsewhere
Topic
Milkdrop Presets
Your Request
Is there any programmatic way to debug custom made Milkdrop presets?
I would like to see, why my preset does not load an image.
I've added the following lines to src/sdl-test-ui/projectM_SDL_main.cpp:
--- a/src/sdl-test-ui/projectM_SDL_main.cpp
+++ b/src/sdl-test-ui/projectM_SDL_main.cpp
@@ -71,9 +71,16 @@ static int mainLoop(void *userData) {
return 0;
}
+static void log_callback(const char * const msg, projectm_log_level, void*) {
+ printf("Log Callback: %s\n", msg);
+}
+
int main(int argc, char *argv[]) {
+ projectm_set_log_callback(log_callback, false, NULL);
+ projectm_set_log_level(PROJECTM_LOG_LEVEL_DEBUG, false);
+
projectMSDL *app = setupSDLApp();
-
+
int status = mainLoop(&app);
// cleanup
But there is not much debug output here. What am I doing wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionThis issue is a general question about projectM and the surrounding ecosystem.This issue is a general question about projectM and the surrounding ecosystem.triageThis is a new issue which hasn't been reviewed yet by a staff member.This is a new issue which hasn't been reviewed yet by a staff member.