@@ -36,11 +36,18 @@ extern "C" {
36
36
/**
37
37
* @brief Creates a playlist manager for the given projectM instance
38
38
*
39
- * Only one active playlist manager is supported per projectM instance. If multiple playlists use
39
+ * <p> Only one active playlist manager is supported per projectM instance. If multiple playlists use
40
40
* the same projectM instance, only the last created playlist manager will receive preset change
41
- * callbacks from the projectM instance.
41
+ * callbacks from the projectM instance.</p>
42
42
*
43
- * To switch to another playlist, use the projectm_playlist_connect() method.
43
+ * <p>To switch to another playlist, use the <tt>projectm_playlist_connect()</tt> method.</p>
44
+ *
45
+ * @important <p>If the projectM handle is not NULL, this method will register the playlist manager with the
46
+ * <tt>projectm_preset_switch_requested_event</tt> and <tt>projectm_preset_switch_failed_event</tt> callbacks
47
+ * of the referenced projectM instance. Setting any one of those callbacks to another function pointer
48
+ * afterwards will cause the playlist manager to no longer being able to switch presets.</p>
49
+ * <p>If the callback needs to be changed temporarily, the playlist functionality can be restored by calling
50
+ * <tt>projectm_playlist_connect()</tt>, which will re-register the callbacks.</p>
44
51
*
45
52
* @param projectm_instance The projectM instance to connect to. Can be a null pointer to leave the newly
46
53
* created playlist instance unconnected.
@@ -52,7 +59,9 @@ PROJECTM_PLAYLIST_EXPORT projectm_playlist_handle projectm_playlist_create(proje
52
59
/**
53
60
* @brief Destroys a previously created playlist manager.
54
61
*
55
- * If the playlist manager is currently connected to a projectM instance, it will be disconnected.
62
+ * If the playlist manager is currently connected to a projectM instance, it will be disconnected
63
+ * by resetting the <tt>projectm_preset_switch_requested_event</tt> and
64
+ * <tt>projectm_preset_switch_failed_event</tt> callbacks to NULL.
56
65
*
57
66
* @param instance The playlist manager instance to destroy.
58
67
* @since 4.0.0
@@ -62,14 +71,21 @@ PROJECTM_PLAYLIST_EXPORT void projectm_playlist_destroy(projectm_playlist_handle
62
71
/**
63
72
* @brief Connects the playlist manager to a projectM instance.
64
73
*
65
- * Sets or removes the preset switch callbacks and stores the projectM instance handle for use with
66
- * manual preset switches via the playlist API.
74
+ * <p> Sets or removes the preset switch callbacks and stores the projectM instance handle for use with
75
+ * manual preset switches via the playlist API.</p>
67
76
*
68
- * When switching between multiple playlist managers, first call this method on the last used
77
+ * <p> When switching between multiple playlist managers, first call this method on the last used
69
78
* playlist manager with a null pointer for the projectM instance, then call this method with the
70
79
* actual projectM instance on the playlist manager that should be activated. It is also safe to
71
- * call projectm_playlist_connect() with a null projectM handle on all playlist manager instances
72
- * before activating a single one with a valid, non-null projectM handle.
80
+ * call <tt>projectm_playlist_connect()</tt> with a null projectM handle on all playlist manager instances
81
+ * before activating a single one with a valid, non-null projectM handle.</p>
82
+ *
83
+ * @important <p>If the projectM handle is not NULL, this method will register the playlist manager with the
84
+ * <tt>projectm_preset_switch_requested_event</tt> and <tt>projectm_preset_switch_failed_event</tt> callbacks
85
+ * of the referenced projectM instance. Setting any one of those callbacks to another function pointer
86
+ * afterwards will cause the playlist manager to no longer being able to switch presets.</p>
87
+ * <p>If the callback needs to be changed temporarily, the playlist functionality can be restored by calling
88
+ * <tt>projectm_playlist_connect()</tt>, which will re-register the callbacks.</p>
73
89
*
74
90
* @param instance The playlist manager instance.
75
91
* @param projectm_instance The projectM instance to connect to. Can be a null pointer to remove
0 commit comments