Skip to content

Commit b88f726

Browse files
committed
Added the version since each API call is available to Doxygen comments.
1 parent 7f48e6c commit b88f726

File tree

18 files changed

+127
-7
lines changed

18 files changed

+127
-7
lines changed

src/api/include/projectM-4/audio.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @file audio.h
33
* @copyright 2003-2024 projectM Team
44
* @brief Functions to pass in audio data to libprojectM.
5+
* @since 4.0.0
56
*
67
* projectM -- Milkdrop-esque visualisation SDK
78
* Copyright (C)2003-2024 projectM Team
@@ -38,6 +39,7 @@ extern "C" {
3839
* are added, only this number of samples is stored and the remainder discarded.
3940
*
4041
* @return The number of audio samples that are stored, per channel.
42+
* @since 4.0.0
4143
*/
4244
PROJECTM_EXPORT unsigned int projectm_pcm_get_max_samples();
4345

@@ -51,10 +53,11 @@ PROJECTM_EXPORT unsigned int projectm_pcm_get_max_samples();
5153
*
5254
* @param instance The projectM instance handle.
5355
* @param samples An array of PCM samples.
54-
* Each sample is expected to be within the range -1 to 1.
56+
* Each sample is expected to be within the range -1 to 1.
5557
* @param count The number of audio samples in a channel.
5658
* @param channels If the buffer is mono or stereo.
57-
* Can be PROJECTM_MONO or PROJECTM_STEREO.
59+
* Can be PROJECTM_MONO, PROJECTM_STEREO or the actual numerical channel count.
60+
* @since 4.0.0
5861
*/
5962
PROJECTM_EXPORT void projectm_pcm_add_float(projectm_handle instance, const float* samples,
6063
unsigned int count, projectm_channels channels);
@@ -71,7 +74,8 @@ PROJECTM_EXPORT void projectm_pcm_add_float(projectm_handle instance, const floa
7174
* @param samples An array of PCM samples.
7275
* @param count The number of audio samples in a channel.
7376
* @param channels If the buffer is mono or stereo.
74-
* Can be PROJECTM_MONO or PROJECTM_STEREO.
77+
* Can be PROJECTM_MONO, PROJECTM_STEREO or the actual numerical channel count.
78+
* @since 4.0.0
7579
*/
7680
PROJECTM_EXPORT void projectm_pcm_add_int16(projectm_handle instance, const int16_t* samples,
7781
unsigned int count, projectm_channels channels);
@@ -88,7 +92,8 @@ PROJECTM_EXPORT void projectm_pcm_add_int16(projectm_handle instance, const int1
8892
* @param samples An array of PCM samples.
8993
* @param count The number of audio samples in a channel.
9094
* @param channels If the buffer is mono or stereo.
91-
* Can be PROJECTM_MONO or PROJECTM_STEREO.
95+
* Can be PROJECTM_MONO, PROJECTM_STEREO or the actual numerical channel count.
96+
* @since 4.0.0
9297
*/
9398
PROJECTM_EXPORT void projectm_pcm_add_uint8(projectm_handle instance, const uint8_t* samples,
9499
unsigned int count, projectm_channels channels);

src/api/include/projectM-4/callbacks.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @file callbacks.h
33
* @copyright 2003-2024 projectM Team
44
* @brief Functions and prototypes for projectM callbacks.
5+
* @since 4.0.0
56
*
67
* projectM -- Milkdrop-esque visualisation SDK
78
* Copyright (C)2003-2024 projectM Team
@@ -36,7 +37,8 @@ extern "C" {
3637
*
3738
* @param is_hard_cut If true, the transition was triggered by a beat-driven event.
3839
* @param user_data A user-defined data pointer that was provided when registering the callback,
39-
* e.g. context information.
40+
* e.g. context information.
41+
* @since 4.0.0
4042
*/
4143
typedef void (*projectm_preset_switch_requested_event)(bool is_hard_cut, void* user_data);
4244

@@ -50,6 +52,7 @@ typedef void (*projectm_preset_switch_requested_event)(bool is_hard_cut, void* u
5052
* @param message The error message.
5153
* @param user_data A user-defined data pointer that was provided when registering the callback,
5254
* e.g. context information.
55+
* @since 4.0.0
5356
*/
5457
typedef void (*projectm_preset_switch_failed_event)(const char* preset_filename,
5558
const char* message, void* user_data);
@@ -64,6 +67,7 @@ typedef void (*projectm_preset_switch_failed_event)(const char* preset_filename,
6467
* @param callback A pointer to the callback function.
6568
* @param user_data A pointer to any data that will be sent back in the callback, e.g. context
6669
* information.
70+
* @since 4.0.0
6771
*/
6872
PROJECTM_EXPORT void projectm_set_preset_switch_requested_event_callback(projectm_handle instance,
6973
projectm_preset_switch_requested_event callback,
@@ -78,6 +82,7 @@ PROJECTM_EXPORT void projectm_set_preset_switch_requested_event_callback(project
7882
* @param callback A pointer to the callback function.
7983
* @param user_data A pointer to any data that will be sent back in the callback, e.g. context
8084
* information.
85+
* @since 4.0.0
8186
*/
8287
PROJECTM_EXPORT void projectm_set_preset_switch_failed_event_callback(projectm_handle instance,
8388
projectm_preset_switch_failed_event callback,

src/api/include/projectM-4/core.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @file core.h
33
* @copyright 2003-2024 projectM Team
44
* @brief Core functions to instantiate, destroy and control projectM.
5+
* @since 4.0.0
56
*
67
* projectM -- Milkdrop-esque visualisation SDK
78
* Copyright (C)2003-2024 projectM Team
@@ -39,6 +40,7 @@ extern "C" {
3940
*
4041
* @return A projectM handle for the newly created instance that must be used in subsequent API calls.
4142
* NULL if the instance could not be created successfully.
43+
* @since 4.0.0
4244
*/
4345
PROJECTM_EXPORT projectm_handle projectm_create();
4446

@@ -48,6 +50,7 @@ PROJECTM_EXPORT projectm_handle projectm_create();
4850
* After destroying the handle, it must not be used for any other calls to the API.
4951
*
5052
* @param instance A handle returned by projectm_create() or projectm_create_settings().
53+
* @since 4.0.0
5154
*/
5255
PROJECTM_EXPORT void projectm_destroy(projectm_handle instance);
5356

@@ -67,6 +70,7 @@ PROJECTM_EXPORT void projectm_destroy(projectm_handle instance);
6770
* @param instance The projectM instance handle.
6871
* @param filename The preset filename or URL to load.
6972
* @param smooth_transition If true, the new preset is smoothly blended over.
73+
* @since 4.0.0
7074
*/
7175
PROJECTM_EXPORT void projectm_load_preset_file(projectm_handle instance, const char* filename,
7276
bool smooth_transition);
@@ -83,6 +87,7 @@ PROJECTM_EXPORT void projectm_load_preset_file(projectm_handle instance, const c
8387
* @param instance The projectM instance handle.
8488
* @param data The preset contents to load.
8589
* @param smooth_transition If true, the new preset is smoothly blended over.
90+
* @since 4.0.0
8691
*/
8792
PROJECTM_EXPORT void projectm_load_preset_data(projectm_handle instance, const char* data,
8893
bool smooth_transition);
@@ -94,6 +99,7 @@ PROJECTM_EXPORT void projectm_load_preset_data(projectm_handle instance, const c
9499
* Can cause a small delay/lag in rendering. Only use if texture paths were changed.
95100
*
96101
* @param instance The projectM instance handle.
102+
* @since 4.0.0
97103
*/
98104
PROJECTM_EXPORT void projectm_reset_textures(projectm_handle instance);
99105

@@ -105,6 +111,7 @@ PROJECTM_EXPORT void projectm_reset_textures(projectm_handle instance);
105111
* @param major A pointer to an int that will be set to the major version.
106112
* @param minor A pointer to an int that will be set to the minor version.
107113
* @param patch A pointer to an int that will be set to the patch version.
114+
* @since 4.0.0
108115
*/
109116
PROJECTM_EXPORT void projectm_get_version_components(int* major, int* minor, int* patch);
110117

@@ -115,6 +122,7 @@ PROJECTM_EXPORT void projectm_get_version_components(int* major, int* minor, int
115122
* needed.
116123
*
117124
* @return The library version in the format major.minor.patch.
125+
* @since 4.0.0
118126
*/
119127
PROJECTM_EXPORT char* projectm_get_version_string();
120128

@@ -127,6 +135,7 @@ PROJECTM_EXPORT char* projectm_get_version_string();
127135
* needed.
128136
*
129137
* @return The VCS revision number the projectM library was built from.
138+
* @since 4.0.0
130139
*/
131140
PROJECTM_EXPORT char* projectm_get_vcs_version_string();
132141

src/api/include/projectM-4/debug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @file debug.h
33
* @copyright 2003-2024 projectM Team
44
* @brief Debug functions for both libprojectM and preset developers.
5+
* @since 4.0.0
56
*
67
* projectM -- Milkdrop-esque visualisation SDK
78
* Copyright (C)2003-2024 projectM Team
@@ -47,6 +48,7 @@ extern "C" {
4748
*
4849
* @param instance The projectM instance handle.
4950
* @param output_file The filename to write the dump to or NULL.
51+
* @since 4.0.0
5052
*/
5153
PROJECTM_EXPORT void projectm_write_debug_image_on_next_frame(projectm_handle instance, const char* output_file);
5254

src/api/include/projectM-4/memory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @file memory.h
33
* @copyright 2003-2024 projectM Team
44
* @brief Memory allocation/deallocation helpers.
5+
* @since 4.0.0
56
*
67
* projectM -- Milkdrop-esque visualisation SDK
78
* Copyright (C)2003-2024 projectM Team
@@ -37,6 +38,7 @@ extern "C" {
3738
* To free the allocated memory, call projectm_free_string(). Do not use free()!
3839
*
3940
* @return A pointer to a zero-initialized memory area.
41+
* @since 4.0.0
4042
*/
4143
PROJECTM_EXPORT char* projectm_alloc_string(unsigned int length);
4244

@@ -49,6 +51,7 @@ PROJECTM_EXPORT char* projectm_alloc_string(unsigned int length);
4951
* <p>Do not use free() to delete the pointer!</p>
5052
*
5153
* @param str A pointer returned by projectm_alloc_string().
54+
* @since 4.0.0
5255
*/
5356
PROJECTM_EXPORT void projectm_free_string(const char* str);
5457

0 commit comments

Comments
 (0)