sonic-pi-net / sonic-pi

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

OS X Boot Error v3.10 Mismatched Sample Rate #1887

Closed Michael-F-Ellis closed 2 years ago

Michael-F-Ellis commented 6 years ago

Just downloaded Sonic Pi for the first time. Pretty neat! But I had a little trouble getting started. Had to unplug my web cam to prevent it complaining about mismatched sample rates. See log excerpt below.

Is there a config setting that would tell it to ignore certain devices, e.g. my web cam, so I don't have to remember to unplug it before starting Sonic Pi?

Thanks!

Sonic Pi Boot Error Report

System Information

Scsynth Output

/Users/mellis/.sonic-pi/log/scsynth.log

# Starting SuperCollider 2018-04-22 10:25:46
Found 0 LADSPA plugins
Number of Devices: 4
   0 : "Built-in Input"
   1 : "Built-in Output"
   2 : "HD Pro Webcam C920"
   3 : "ACE Sound Effects"

ERROR: Input sample rate is 16000, but output is 44100. Mismatched sample rates are not supported. To disable input, set the number of input channels to 0.
could not initialize audio.
mactkg commented 6 years ago

I got same errors when a bluetooth earphone is connected to my computer.

Sonic Pi Boot Error Report

System Information

Scsynth Output

/Users/MY_USERNAME/.sonic-pi/log/scsynth.log

# Starting SuperCollider 2018-06-02 18:56:21
Found 0 LADSPA plugins
Number of Devices: 4
   0 : "Bose QuietControl 30"
   1 : "Bose QuietControl 30"
   2 : "Built-in Microph"
   3 : "Built-in Output"

ERROR: Input sample rate is 16000, but output is 44100. Mismatched sample rates are not supported. To disable input, set the number of input channels to 0.
could not initialize audio.
mactkg commented 6 years ago

Ah, I found this comment https://github.com/samaaron/sonic-pi/issues/1896#issuecomment-388068042, and this problem seems to be already solved.

@Michael-F-Ellis you can close this issue!

ethancrawford commented 2 years ago

@Michael-F-Ellis - as mactkg suggests, this should no longer be an issue for you with recent versions of Sonic Pi.

As well as his comment above, in recent versions of Sonic Pi, there is a config file that you can use to specify the desired audio device before you boot Sonic Pi. See an example of this file here: https://github.com/sonic-pi-net/sonic-pi/tree/main/app/config/user-examples. The actual file would live in ~/.sonic-pi/config/audio-settings.toml.

I'll close this ticket for now. If this is still an issue for you with the latest release of Sonic Pi from our website, please feel free to reopen this ticket and we can hopefully provide more advice.