@@ -64,7 +64,7 @@ PROJECTM_EXPORT void projectm_set_texture_search_paths(projectm_handle instance,
6464 * If using this feature, it is further recommended to set the time to 0.0 on the first frame.
6565 *
6666 * @param instance The projectM instance handle.
67- * @param seconds_since_first_frame Any value >= 0 to use user-specified timestamps, values < 0 will use the system clock.
67+ * @param seconds_since_first_frame Any value >= 0 to use user-specified timestamps, values < 0 will use the system clock. Default: -1.0
6868 * @since 4.2.0
6969 */
7070PROJECTM_EXPORT void projectm_set_frame_time (projectm_handle instance , double seconds_since_first_frame );
@@ -87,7 +87,7 @@ PROJECTM_EXPORT double projectm_get_last_frame_time(projectm_handle instance);
8787 * The beat sensitivity to be used.
8888 *
8989 * @param instance The projectM instance handle.
90- * @param sensitivity The sensitivity setting.
90+ * @param sensitivity The sensitivity setting. Default: 1.0
9191 * @since 4.0.0
9292 */
9393PROJECTM_EXPORT void projectm_set_beat_sensitivity (projectm_handle instance , float sensitivity );
@@ -109,7 +109,7 @@ PROJECTM_EXPORT float projectm_get_beat_sensitivity(projectm_handle instance);
109109 * <p>Set this to a higher value than preset duration to disable hard cuts.</p>
110110 *
111111 * @param instance The projectM instance handle.
112- * @param seconds Minimum number of seconds the preset will be displayed before a hard cut.
112+ * @param seconds Minimum number of seconds the preset will be displayed before a hard cut. Default: 20.0
113113 * @since 4.0.0
114114 */
115115PROJECTM_EXPORT void projectm_set_hard_cut_duration (projectm_handle instance , double seconds );
@@ -129,7 +129,7 @@ PROJECTM_EXPORT double projectm_get_hard_cut_duration(projectm_handle instance);
129129 * to work properly.
130130 *
131131 * @param instance The projectM instance handle.
132- * @param enabled True to enable hard cuts, false to disable.
132+ * @param enabled True to enable hard cuts, false to disable. Default: false
133133 * @since 4.0.0
134134 */
135135PROJECTM_EXPORT void projectm_set_hard_cut_enabled (projectm_handle instance , bool enabled );
@@ -148,7 +148,7 @@ PROJECTM_EXPORT bool projectm_get_hard_cut_enabled(projectm_handle instance);
148148 * The beat detection volume difference that must be surpassed to trigger a hard cut.
149149 *
150150 * @param instance The projectM instance handle.
151- * @param sensitivity The volume threshold that triggers a hard cut if surpassed.
151+ * @param sensitivity The volume threshold that triggers a hard cut if surpassed. Default: 2.0
152152 * @since 4.0.0
153153 */
154154PROJECTM_EXPORT void projectm_set_hard_cut_sensitivity (projectm_handle instance , float sensitivity );
@@ -168,7 +168,7 @@ PROJECTM_EXPORT float projectm_get_hard_cut_sensitivity(projectm_handle instance
168168 * to the other.
169169 *
170170 * @param instance The projectM instance handle.
171- * @param seconds Time in seconds it takes to smoothly transition from one preset to another.
171+ * @param seconds Time in seconds it takes to smoothly transition from one preset to another. Default: 3.0
172172 * @since 4.0.0
173173 */
174174PROJECTM_EXPORT void projectm_set_soft_cut_duration (projectm_handle instance , double seconds );
@@ -188,7 +188,7 @@ PROJECTM_EXPORT double projectm_get_soft_cut_duration(projectm_handle instance);
188188 * a smooth cut will be initiated. A hard cut, if any, will always happen before this time.
189189 *
190190 * @param instance The projectM instance handle.
191- * @param seconds The number of seconds a preset will be displayed before the next is shown.
191+ * @param seconds The number of seconds a preset will be displayed before the next is shown. Default: 30.0
192192 * @since 4.0.0
193193 */
194194PROJECTM_EXPORT void projectm_set_preset_duration (projectm_handle instance , double seconds );
@@ -212,8 +212,8 @@ PROJECTM_EXPORT double projectm_get_preset_duration(projectm_handle instance);
212212 * so only multiples of two are used.
213213 *
214214 * @param instance The projectM instance handle.
215- * @param width The new width of the mesh.
216- * @param height The new height of the mesh.
215+ * @param width The new width of the mesh. Default: 32
216+ * @param height The new height of the mesh. Default: 24
217217 * @since 4.0.0
218218 */
219219PROJECTM_EXPORT void projectm_set_mesh_size (projectm_handle instance , size_t width , size_t height );
@@ -235,8 +235,8 @@ PROJECTM_EXPORT void projectm_get_mesh_size(projectm_handle instance, size_t* wi
235235 * be configured externally to fix any possible drift.
236236 *
237237 * @param instance The projectM instance handle.
238- * @param offset_X The offset in texels in the horizontal direction. Milkdrop uses 0.5, default in projectM is 0.0.
239- * @param offset_y The offset in texels in the vertical direction. Milkdrop uses 0.5, default in projectM is 0.0.
238+ * @param offset_X The offset in texels in the horizontal direction. Milkdrop uses 0.5. Default: 0.0
239+ * @param offset_y The offset in texels in the vertical direction. Milkdrop uses 0.5. Default: 0.0
240240 * @since 4.2.0
241241 */
242242PROJECTM_EXPORT void projectm_set_texel_offset (projectm_handle instance , float offset_X , float offset_y );
@@ -263,7 +263,7 @@ PROJECTM_EXPORT void projectm_get_texel_offset(projectm_handle instance, float*
263263 * which may choose to use it for calculations. It is not used in any other way by the library.
264264 *
265265 * @param instance The projectM instance handle.
266- * @param fps The current FPS value projectM is running with.
266+ * @param fps The current FPS value projectM is running with. Default: 35
267267 * @since 4.0.0
268268 */
269269PROJECTM_EXPORT void projectm_set_fps (projectm_handle instance , int32_t fps );
@@ -286,7 +286,7 @@ PROJECTM_EXPORT int32_t projectm_get_fps(projectm_handle instance);
286286 * be distorted if the viewport isn't exactly square.
287287 *
288288 * @param instance The projectM instance handle.
289- * @param enabled True to enable aspect correction, false to disable it.
289+ * @param enabled True to enable aspect correction, false to disable it. Default: true
290290 * @since 4.0.0
291291 */
292292PROJECTM_EXPORT void projectm_set_aspect_correction (projectm_handle instance , bool enabled );
@@ -309,7 +309,7 @@ PROJECTM_EXPORT bool projectm_get_aspect_correction(projectm_handle instance);
309309 * <p>See function sampledPresetDuration() of the TimeKeeper class on how it is used.</p>
310310 *
311311 * @param instance The projectM instance handle.
312- * @param value The new "easter egg" value. Must be greater than zero, otherwise a default sigma value of 1.0 will be used.
312+ * @param value The new "easter egg" value. Must be greater than zero, otherwise a default sigma value of 1.0 will be used. Default: 1.0
313313 * @since 4.0.0
314314 */
315315PROJECTM_EXPORT void projectm_set_easter_egg (projectm_handle instance , float value );
@@ -329,7 +329,7 @@ PROJECTM_EXPORT float projectm_get_easter_egg(projectm_handle instance);
329329 * preset switches will still be executed.
330330 *
331331 * @param instance The projectM instance handle.
332- * @param lock True to lock the current preset, false to enable automatic transitions.
332+ * @param lock True to lock the current preset, false to enable automatic transitions. Default: false
333333 * @since 4.0.0
334334 */
335335PROJECTM_EXPORT void projectm_set_preset_locked (projectm_handle instance , bool lock );
@@ -345,15 +345,18 @@ PROJECTM_EXPORT bool projectm_get_preset_locked(projectm_handle instance);
345345/**
346346 * @brief Sets the current viewport size in pixels.
347347 *
348+ * This method must be called with a non-zero size for each dimension for projectM to render
349+ * anything. The viewport size should be the same size or smaller as the surface being rendered to.
350+ *
348351 * The internal textures will only be replaced and resized when rendering the next frame and only
349352 * if any of the two dimensions actually changed.
350353 *
351354 * Calling this function on every frame with the same size doesn't have any negative
352355 * effects as it only updates the size with the same values.
353356 *
354357 * @param instance The projectM instance handle.
355- * @param width New viewport width in pixels.
356- * @param height New viewport height in pixels.
358+ * @param width New viewport width in pixels. Default: 0
359+ * @param height New viewport height in pixels. Default: 0
357360 * @since 4.0.0
358361 */
359362PROJECTM_EXPORT void projectm_set_window_size (projectm_handle instance , size_t width , size_t height );
0 commit comments