Added API function for dumping the next frame.

This commit is contained in:
Kai Blaschke
2022-10-23 18:08:53 +02:00
parent 75f802e261
commit dbbbc3e591
4 changed files with 30 additions and 0 deletions

View File

@ -674,3 +674,10 @@ auto projectm_pcm_add_uint8(projectm_handle instance, const uint8_t* samples, un
{
PcmAdd(instance, samples, count, channels);
}
auto projectm_write_debug_image_on_next_frame(projectm_handle instance) -> void
{
auto* projectMInstance = handle_to_instance(instance);
projectMInstance->DumpDebugImageOnNextFrame();
}