sonic-pi-net / sonic-pi

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

Audio issue on MAC using HDMI audio out #1728

Open knubo opened 6 years ago

knubo commented 6 years ago

I'm trying to use the latest Sonic PI for mac (3.0.1), but it has a problem outputting audio to HDMI. It does not give any error when starting up, but the 2.9 version says:

Detailed Error Report:

GUI log

[GUI] - shutting down any old audio servers... [GUI] - booting live coding server [GUI] - using default editor colours [GUI] - starting UDP OSC Server on port 4558... [GUI] - UDP OSC Server ready and listening [GUI] - waiting for server to connect... [GUI] - server failed to start with this error message:

Server Exception: Unable to boot sound synthesis engine: the input and output rates of your audio card are not the same. Got in: unknown_in_rate, out: unknown_out_rate. [GUI] - critical error! [GUI] - server connection established [GUI] - loading workspaces

Server Errors

Failed to start server: Unable to boot sound synthesis engine: the input and output rates of your audio card are not the same. Got in: unknown_in_rate, out: unknown_out_rate. /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/scsynthexternal.rb:315:in rescue in boot_server_osx' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/scsynthexternal.rb:289:inboot_server_osx' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/scsynthexternal.rb:167:in boot' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/scsynthexternal.rb:29:ininitialize' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/server.rb:73:in new' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/server.rb:73:ininitialize' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/studio.rb:79:in new' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/studio.rb:79:ininit_studio' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/studio.rb:37:in initialize' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/lang/sound.rb:110:innew' /Applications/Sonic Pi 2.app/app/server/sonicpi/lib/sonicpi/lang/sound.rb:110:in block (2 levels) in included' /Applications/Sonic Pi 2.app/Contents/MacOS/../../server/bin/sonic-pi-server.rb:105:innew' /Applications/Sonic Pi 2.app/Contents/MacOS/../../server/bin/sonic-pi-server.rb:105:in `

'

Server Output

Using protocol: udp

From the console log it says: standard 20:39:00.259757 +0200 ruby AudioHardware.cpp:671:AudioObjectGetPropertyData: AudioObjectGetPropertyData: no object with given ID standard 20:39:00.378509 +0200 scsynth AudioHardware.cpp:580:AudioObjectGetPropertyDataSize: AudioObjectGetPropertyDataSize: no object with given ID

PS: loved your talk and visit on Java Zone in Oslo :-)

samaaron commented 6 years ago

Hi there, is there any reason you're not using v3.0.1? Could you try with that first?

knubo commented 6 years ago

I tried it on 3.0.1 and it fails to play the audio nicely. It just comes out as distorted noise when I do this when playing using HDMI output. It works fine when using the regular audio port.

samaaron commented 6 years ago

Hi, could you try v3.1.0 to see if that has improved things?

https://github.com/samaaron/sonic-pi/releases/tag/v3.1.0