summaryrefslogtreecommitdiffstats
path: root/src/server/JackDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 16:53:29 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 19:37:24 -0400
commit9009631bdf6d1142a13335ececbc1f78daf3fdf0 (patch)
tree00df6e97d58038d6321e377051ba4b67baf2f5d4 /src/server/JackDriver.cpp
parent3848b713426fa9bef1002048950c1b664cbb7350 (diff)
downloadingen-9009631bdf6d1142a13335ececbc1f78daf3fdf0.tar.gz
ingen-9009631bdf6d1142a13335ececbc1f78daf3fdf0.tar.bz2
ingen-9009631bdf6d1142a13335ececbc1f78daf3fdf0.zip
Simplify PortType
Diffstat (limited to 'src/server/JackDriver.cpp')
-rw-r--r--src/server/JackDriver.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index 68974b12..6624939e 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -533,15 +533,19 @@ JackDriver::_shutdown_cb()
int
JackDriver::_block_length_cb(jack_nframes_t nframes)
{
+ const URIs& uris = _engine.world().uris();
+
if (_engine.root_graph()) {
_block_length = nframes;
_seq_size = static_cast<uint32_t>(
jack_port_type_get_buffer_size(_client, JACK_DEFAULT_MIDI_TYPE));
_engine.root_graph()->set_buffer_size(
- _engine.run_context(), *_engine.buffer_factory(), PortType::AUDIO,
+ _engine.run_context(), *_engine.buffer_factory(),
+ uris.atom_Sound,
_engine.buffer_factory()->audio_buffer_size(nframes));
_engine.root_graph()->set_buffer_size(
- _engine.run_context(), *_engine.buffer_factory(), PortType::ATOM,
+ _engine.run_context(), *_engine.buffer_factory(),
+ uris.atom_Sequence,
_seq_size);
}
return 0;