Skip to content

Commit 9e779cf

Browse files
committed
scsynth - specify -U flag for plugin directory
Ensures only the Sonic Pi plugin directory is loaded. This isolates Sonic Pi’s scsynth from any externally installed SuperCollider instance which may have incompatible plugins. Fixes boot errors caused by attempting to load plugins from an incompatible SuperCollider version.
1 parent 6eb5b2f commit 9e779cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/server/sonicpi/lib/sonicpi/scsynthexternal.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,15 @@ def boot_server_osx
342342
raise "Unable to boot sound synthesis engine: the input and output rates of your audio card are not the same. Got in: #{audio_in_rate}, out: #{audio_out_rate}."
343343
end
344344
end
345-
boot_and_wait(scsynth_path, "-u", @port.to_s, "-a", num_audio_busses_for_current_os.to_s, "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "16", "-o", "16", "-b", num_buffers_for_current_os.to_s)
345+
boot_and_wait(scsynth_path, "-u", @port.to_s, "-a", num_audio_busses_for_current_os.to_s, "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "16", "-o", "16", "-b", num_buffers_for_current_os.to_s, "-U", "#{native_path}/supercollider/plugins/",)
346346
end
347347

348348

349349
def boot_server_windows
350350
log_boot_msg
351351
puts "Booting on Windows"
352352

353-
boot_and_wait(scsynth_path, "-u", @port.to_s, "-a", num_audio_busses_for_current_os.to_s, "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "16", "-o", "16", "-b", num_buffers_for_current_os.to_s, "-B", "127.0.0.1")
353+
boot_and_wait(scsynth_path, "-u", @port.to_s, "-a", num_audio_busses_for_current_os.to_s, "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "16", "-o", "16", "-b", num_buffers_for_current_os.to_s, "-U", "#{native_path}/plugins/", "-B", "127.0.0.1")
354354
end
355355

356356
def boot_server_raspberry_pi

0 commit comments

Comments
 (0)