Skip to content

Commit

Permalink
grab pool_sizes_kb from externs (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer authored Apr 12, 2024
1 parent 883fa86 commit 917f52a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hvcc/generators/c2daisy/c2daisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def compile(
component_glue['displayprocess'] = board_info['displayprocess']
component_glue['debug_printing'] = daisy_meta.get('debug_printing', False)
component_glue['usb_midi'] = daisy_meta.get('usb_midi', False)
component_glue['pool_sizes_kb'] = externs["memoryPoolSizesKb"]

# samplerate
samplerate = daisy_meta.get('samplerate', 48000)
Expand Down
2 changes: 1 addition & 1 deletion hvcc/generators/c2daisy/templates/HeavyDaisy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using namespace daisy;

json2daisy::Daisy{{ class_name|capitalize }} hardware;

Heavy_{{patch_name}} hv(SAMPLE_RATE);
Heavy_{{patch_name}} hv(SAMPLE_RATE, {{pool_sizes_kb.internal}}, {{pool_sizes_kb.inputQueue}}, {{pool_sizes_kb.outputQueue}});

void audiocallback(daisy::AudioHandle::InputBuffer in, daisy::AudioHandle::OutputBuffer out, size_t size);
static void sendHook(HeavyContextInterface *c, const char *receiverName, uint32_t receiverHash, const HvMessage * m);
Expand Down

0 comments on commit 917f52a

Please sign in to comment.