Skip to content

Commit

Permalink
set numerical bool
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Sep 18, 2024
1 parent 6de9b22 commit 1bbb362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hvcc/generators/c2dpf/templates/DistrhoPluginInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#define DISTRHO_PLUGIN_WANT_STATE 0
#define DISTRHO_PLUGIN_WANT_TIMEPOS 1
#define DISTRHO_PLUGIN_WANT_FULL_STATE 0
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT {{meta.midi_input if meta.midi_input is defined else 0}}
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT {{meta.midi_output if meta.midi_output is defined else 0}}
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT {{1 if meta.midi_input is sameas true else 0}}
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT {{1 if meta.midi_output is sameas true else 0}}
{%- if meta.lv2_info != None %}
#define DISTRHO_PLUGIN_LV2_CATEGORY "{{meta.lv2_info}}"
{%- endif %}
Expand Down
4 changes: 2 additions & 2 deletions hvcc/generators/types/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class DPF(BaseModel):
enable_ui: bool = False
enable_modgui: bool = False
ui_size: Optional[DPFUISize] = None
midi_input: Optional[bool] = None
midi_output: Optional[bool] = None
midi_input: bool = False
midi_output: bool = False
port_groups: Optional[DPFPortGroups] = None
enumerators: Optional[Dict[str, List[str]]] = None
version: Optional[str] = None
Expand Down

0 comments on commit 1bbb362

Please sign in to comment.