sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.75k stars 918 forks source link

No audio on Antergos #1320

Closed Srogozins closed 6 years ago

Srogozins commented 8 years ago

I wasn't able to find exact issue I'm having on the same distro that was recent. sonic-pi doesn't seem to output any audio on my system. Example: print "test"; play 70; yields no audio. Print output:


=> Tuesday 5th July, 2016

=> 01:50, EEST

=> Hello, it's lovely to see
   you again. I do hope that
   you're well.

=> v2.10 Ready...

=> Studio: Initializing...

=> Starting run 1

=> Completed run 1

=> Starting run 2

{run: 2, time: 0.0}
 ├─ test
 └─ synth :beep, {note: 70.0}

=> Completed run 2```

Logs:

==> debug.log <==

==> gui.log <== [GUI] - using default editor colours [GUI] - shutting down any old audio servers... [GUI] - starting UDP OSC Server on port 4558... [GUI] - UDP OSC Server ready and listening [GUI] - booting live coding server [GUI] - waiting for server to boot... . [GUI] - server successfully booted. [GUI] - waiting for server to connect... [GUI] - server connection established [GUI] - loading workspaces

==> scsynth.log <==

Starting SuperCollider 2016-07-05 01:53:30

JackDriver: client name is 'SuperCollider' SC_AudioDriver: sample rate = 48000.000000, driver's block size = 1024 SuperCollider 3 server ready. JackDriver: max output latency 21.3 ms exception in GrafDef_Load: UGen 'Decimator' not installed. while reading file '/usr/share/sonic-pi/synthdefs/compiled/sonic-pi-fx_bitcrusher.scsyndef' exception in GrafDef_Load: UGen 'MdaPiano' not installed. while reading file '/usr/share/sonic-pi/synthdefs/compiled/sonic-pi-piano.scsyndef'

==> server-errors.log <==

==> server-output.log <== Sonic Pi server booting... Using protocol: udp This is Sonic Pi v2.10 running on linux with ruby api 2.3.0. Sonic Pi Server successfully booted.



From what I see there the exceptions present don't seem to be severe enough to cause simple beep to not be able to be played.
samaaron commented 6 years ago

Sorry, we're unable to support generic linux at this stage due to lack of resources.

However, a typical issue with linux is getting jack to boot correctly. Sonic Pi tries its best to get the jack config correct, but it doesn't appear to always work on all the many flavours of linux. One solution people have found is to manually start jack and get it working for your system first. This can be achieved by supplying the correct command line arguments or using a GUI such as qjackctl.

Once you have booted jack successfully, you can then start Sonic Pi which will use the existing jack server rather than attempt to boot its own :-)