File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
app/server/ruby/lib/sonicpi Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -404,18 +404,12 @@ def boot_server_raspberry_pi
404
404
else
405
405
puts "Booting on Raspberry Pi (32bit OS)"
406
406
end
407
- begin
408
- asoundrc = File . read ( Dir . home + "/.asoundrc" )
409
- audio_card = ( asoundrc . match ( /pcm.output\s +{[^}]+\n \s +card\s +([0-9]+)/m ) ) [ 1 ]
410
- rescue
411
- audio_card = "0"
412
- end
413
407
414
408
#Start Jack if not already running
415
409
if `ps cax | grep jackd` . split ( " " ) . first . nil?
416
410
#Jack not running - start a new instance
417
411
puts "Jackd not running on system. Starting..."
418
- jackCmd = "jackd -R -p 32 -d alsa -d hw: #{ audio_card } -n 3 -p 2048 -o2 -r 44100 "
412
+ jackCmd = "jackd -T -ddummy -r48000 -p1024 "
419
413
jack_pid = spawn "exec #{ jackCmd } "
420
414
register_process jack_pid
421
415
else
@@ -435,11 +429,13 @@ def boot_server_raspberry_pi
435
429
436
430
boot_and_wait ( scsynth_path , scsynth_opts )
437
431
438
- `jack_connect SuperCollider:out_1 system:playback_1`
439
- `jack_connect SuperCollider:out_2 system:playback_2`
440
432
`jack_connect SuperCollider:in_1 system_capture_1`
441
433
`jack_connect SuperCollider:in_2 system_capture_2`
442
-
434
+ `pactl load-module module-jack-source connect=0 client_name=JACK_to_PulseAudio`
435
+ `pactl load-module module-loopback source=jack_in`
436
+ `jack_connect SuperCollider:out_1 JACK_to_PulseAudio:front-left`
437
+ `jack_connect SuperCollider:out_2 JACK_to_PulseAudio:front-right`
438
+
443
439
sleep 3
444
440
end
445
441
You can’t perform that action at this time.
0 commit comments