![]() |
SOUND4 IMPACT.CL Library [1.3.12]
|
Send/update metadata. More...
Functions | |
| void | impact_SetMetadata (struct impact_CInstance *instance, const char *key, const char *value) |
| void | impact_SetMetadataMulti (struct impact_CInstance *instance, const char **keyvalue) |
| const char ** | impact_GetMetadataInfos (struct impact_CInstance *instance) |
| void | impact_FreeMetadataInfos (struct impact_CInstance *instance, const char **infos) |
Metadata is used on-need, and might be used by extensions modules (Watermarking, Streaming, ...)
| void impact_FreeMetadataInfos | ( | struct impact_CInstance * | instance, |
| const char ** | infos | ||
| ) |
Frees the information returned by impact_GetMetadataInfos.
| instance | the instance |
| infos | the infos |
| const char ** impact_GetMetadataInfos | ( | struct impact_CInstance * | instance | ) |
Get information on known metadata keys.
| instance | the instance |
| void impact_SetMetadata | ( | struct impact_CInstance * | instance, |
| const char * | key, | ||
| const char * | value | ||
| ) |
Adds the specific metadata to the process.
It can come from any thread, and will be used as soon as possible.
Setting a null value erase the metadata, which is different from setting an empty string. Initial metadata might be set as soon as instance is created (and before update thread).
| instance | the instance |
| key | the metadata key. If key contains a dot (like wm.KEY), it will be sent only to the matching plugin (ie wm here) without the prefix (ie KEY here). Use empty prefix for routing to main only. |
| value | the metadata value or nullptr to erase it. |
| void impact_SetMetadataMulti | ( | struct impact_CInstance * | instance, |
| const char ** | keyvalue | ||
| ) |
Adds multiple metadata to the process.
This works like impact_SetMetadata but with multiple metadata at once.
| instance | the instance |
| keyvalue | a list of key/value pair, ending with null key. |