mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-06 15:35:04 +00:00
Add get and set for beat sensitivy value to API
This commit is contained in:
@ -240,6 +240,18 @@ void projectm_set_texture_size(projectm_handle instance, size_t size)
|
||||
projectMInstance->SetTextureSize(size);
|
||||
}
|
||||
|
||||
void projectm_set_beat_sensitivity(projectm_handle instance, float sensitivity)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
projectMInstance->SetBeatSensitivity(sensitivity);
|
||||
}
|
||||
|
||||
float projectm_get_beat_sensitivity(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
return projectMInstance->GetBeatSensitivity();
|
||||
}
|
||||
|
||||
double projectm_get_hard_cut_duration(projectm_handle instance)
|
||||
{
|
||||
auto projectMInstance = handle_to_instance(instance);
|
||||
|
||||
Reference in New Issue
Block a user