diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 16:53:29 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 19:37:24 -0400 |
commit | 9009631bdf6d1142a13335ececbc1f78daf3fdf0 (patch) | |
tree | 00df6e97d58038d6321e377051ba4b67baf2f5d4 /src/server/JackDriver.cpp | |
parent | 3848b713426fa9bef1002048950c1b664cbb7350 (diff) | |
download | ingen-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.cpp | 8 |
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; |