Skip to content

Commit 5acd8bf

Browse files
committed
Clarify async loading documentation in preset load callback
1 parent e718f99 commit 5acd8bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/playlist/api/projectM-4/playlist_callbacks.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ typedef void (*projectm_playlist_preset_switch_failed_event)(const char* preset_
7676
* letting the playlist library load presets from the filesystem. This is useful for:
7777
* - Loading presets from archives (e.g., ZIP files)
7878
* - Loading presets from network sources (e.g., HTTP)
79-
* - Asynchronous preset loading
8079
* - Custom preset storage solutions
8180
*
8281
* When this callback is set and returns true, the playlist library will NOT attempt
@@ -86,6 +85,9 @@ typedef void (*projectm_playlist_preset_switch_failed_event)(const char* preset_
8685
* - Handling any loading errors
8786
* - Firing the preset_switched_event callback when the preset is ready (if desired)
8887
*
88+
* Note: If implementing asynchronous loading, the application must complete the load and
89+
* fire the preset_switched_event callback itself after the async operation completes.
90+
*
8991
* If the callback returns false or is not set, the playlist library will use the
9092
* default behavior of loading the preset from the filesystem.
9193
*

0 commit comments

Comments
 (0)