Skip to content

Commit e9a8dae

Browse files
authored
Update scsynthexternal.rb
remove block size change due to raspberry_pi_1 (no longer possible) Add pulseAudio input hooks to SuperCollider. #added reminder boot_server_linux needs further work
1 parent cef69f2 commit e9a8dae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def boot_server_raspberry_pi
416416
puts "Jackd already running. Not starting another server..."
417417
end
418418

419-
block_size = raspberry_pi_1? ? 512 : 128
419+
block_size = 128
420420

421421
local_scsynth_opts = {
422422
"-c" => "128",
@@ -429,17 +429,19 @@ def boot_server_raspberry_pi
429429

430430
boot_and_wait(scsynth_path, scsynth_opts)
431431

432-
`jack_connect SuperCollider:in_1 system_capture_1`
433-
`jack_connect SuperCollider:in_2 system_capture_2`
434432
`pactl load-module module-jack-source connect=0 client_name=JACK_to_PulseAudio`
435433
`pactl load-module module-loopback source=jack_in`
434+
`pactl load-module module-jack-sink channels=2 connect=0 client_name=PulseAudio_to_JACK`
435+
`jack_connect PulseAudio_to_JACK:front-left SuperCollider:in_1`
436+
`jack_connect PulseAudio_to_JACK:front-right SuperCollider:in_2`
436437
`jack_connect SuperCollider:out_1 JACK_to_PulseAudio:front-left`
437438
`jack_connect SuperCollider:out_2 JACK_to_PulseAudio:front-right`
438439

439440
sleep 3
440441
end
441442

442443
def boot_server_linux
444+
#to do -- needs further work
443445
log_boot_msg
444446
puts "Booting on Linux"
445447
#Start Jack if not already running

0 commit comments

Comments
 (0)