Dell 3450 Laptop, Win10 & SP 4.1... Collider error - Different audio rates

I know it’s been mentioned, … just point me at the post.

Windows 10 64-bit, Sonic 4.1. … SP wont start, and I
get a popup saying the audio inputs and outputs aren’t
the same… which means nothing to me.

Works fine on the inbuilt Realtek speakers but as soon as I
plug in a pair of Sennheiser on USB, Collider refuses to run.

Ta muchly!

Eli…

Hi @Eli

You’re not alone…

Sorry, the Audio Server failed to start... 
Please try changing your default OS audio input & outputs. 
Note, the audio rate of the inputs & outputs must be the same. 
For the curious among you, Sonic Pi uses the SuperCollider Audio Server to generate its sounds. By default it will connect to your default system audio input and outputs.
Unfortunately SuperCollider is having problems starting correctly. You can read the full error log below which should explain why.
To fix this you can try changing your default operating system audio inputs and outputs (ensuring they have the same audio rate).
Advanced Users - you may manually override this and further configure how SuperCollider boots by editing the file: C:\Users\nlb\.sonic-pi\config\audio-settings.toml 
SuperCollider Log
Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Line (2- Steinberg UR22mkII )   (device #1 with 2 ins 0 outs)
  - MME : Mixage stéréo (Realtek(R) Audio   (device #2 with 2 ins 0 outs)
  - MME : CABLE Output (VB-Audio Virtual    (device #3 with 8 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #4 with 0 ins 2 outs)
  - MME : Line (2- Steinberg UR22mkII )   (device #5 with 0 ins 2 outs)
  - MME : BenQ GW2480 (NVIDIA High Defini   (device #6 with 0 ins 2 outs)
  - MME : Haut-parleurs (Realtek(R) Audio   (device #7 with 0 ins 8 outs)
  - Windows DirectSound : Pilote de capture audio principal   (device #8 with 2 ins 0 outs)
  - Windows DirectSound : Line (2- Steinberg UR22mkII )   (device #9 with 2 ins 0 outs)
  - Windows DirectSound : Mixage stéréo (Realtek(R) Audio)   (device #10 with 2 ins 0 outs)
  - Windows DirectSound : CABLE Output (VB-Audio Virtual Cable)   (device #11 with 8 ins 0 outs)
  - Windows DirectSound : Périphérique audio principal   (device #12 with 0 ins 2 outs)
  - Windows DirectSound : Line (2- Steinberg UR22mkII )   (device #13 with 0 ins 2 outs)
  - Windows DirectSound : BenQ GW2480 (NVIDIA High Definition Audio)   (device #14 with 0 ins 2 outs)
  - Windows DirectSound : Haut-parleurs (Realtek(R) Audio)   (device #15 with 0 ins 8 outs)
  - ASIO : FL Studio ASIO   (device #16 with 2 ins 2 outs)
  - ASIO : Yamaha Steinberg USB ASIO   (device #17 with 2 ins 2 outs)
  - ASIO : ZOOM H Series ASIO   (device #18 with 0 ins 0 outs)
  - Windows WASAPI : Line (2- Steinberg UR22mkII )   (device #19 with 0 ins 2 outs)
  - Windows WASAPI : BenQ GW2480 (NVIDIA High Definition Audio)   (device #20 with 0 ins 2 outs)
  - Windows WASAPI : Haut-parleurs (Realtek(R) Audio)   (device #21 with 0 ins 2 outs)
  - Windows WASAPI : Mixage stéréo (Realtek(R) Audio)   (device #22 with 2 ins 0 outs)
  - Windows WASAPI : Line (2- Steinberg UR22mkII )   (device #23 with 2 ins 0 outs)
  - Windows WASAPI : CABLE Output (VB-Audio Virtual Cable)   (device #24 with 1 ins 0 outs)
  - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #25 with 0 ins 8 outs)
  - Windows WDM-KS : Mixage stéréo (Realtek HD Audio Stereo input)   (device #26 with 2 ins 0 outs)
  - Windows WDM-KS : Entrée ligne (Realtek HD Audio Line input)   (device #27 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone (Realtek HD Audio Mic input)   (device #28 with 2 ins 0 outs)
  - Windows WDM-KS : Line (Steinberg UR22mkII -1)   (device #29 with 2 ins 0 outs)
  - Windows WDM-KS : Line (Steinberg UR22mkII -1)   (device #30 with 0 ins 2 outs)
  - Windows WDM-KS : Output (NVIDIA High Definition Audio)   (device #31 with 0 ins 2 outs)
  - Windows WDM-KS : CABLE Output (VB-Audio Point)   (device #32 with 8 ins 0 outs)
  - Windows WDM-KS : Speakers (VB-Audio Point)   (device #33 with 0 ins 8 outs)
  - Windows WDM-KS : Microphone (Logitech Mic (Communicate STX))   (device #34 with 1 ins 0 outs)

Requested devices:
  Out:
  - (default)

Selecting default system output device

Booting with:
  Out: MME : Line (2- Steinberg UR22mkII )
  Sample rate: 44100.000
  Latency (in/out): 0.000 / 0.091 sec
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 64
SuperCollider 3 server ready.

Audio parameters in windows

The default ouput :
image

The default input :
image

the daemon.log

[2022-09-02 14:19:58] Welcome to the Daemon Booter
[2022-09-02 14:19:58] ----------------------------
[2022-09-02 14:19:58] SuperCollider inputs disabled by GUI
[2022-09-02 14:19:58] checked port 36445, #<UDPSocket:0x0000017539651b98>
[2022-09-02 14:19:58] checked port 36446, #<UDPSocket:0x000001753964ae10>
[2022-09-02 14:19:58] checked port 36447, #<UDPSocket:0x000001753964a5f0>
[2022-09-02 14:19:58] checked port 4560, #<UDPSocket:0x0000017539649f10>
[2022-09-02 14:19:58] checked port 36448, #<UDPSocket:0x0000017539648958>
[2022-09-02 14:19:58] checked port 36449, #<UDPSocket:0x0000017539648430>
[2022-09-02 14:19:58] checked port 36450, #<UDPSocket:0x0000017539648188>
[2022-09-02 14:19:58] checked port 36451, #<UDPSocket:0x000001753963bcf8>
[2022-09-02 14:19:58] checked port 36452, #<UDPSocket:0x000001753963b960>
[2022-09-02 14:19:58] Selected ports: 
[2022-09-02 14:19:58] {"spider-listen-to-gui"=>36445, "gui-send-to-spider"=>36445, "gui-listen-to-spider"=>36446, "spider-send-to-gui"=>36446, "scsynth"=>36447, "scsynth-send"=>36447, "osc-cues"=>4560, "tau"=>36448, "spider"=>36449, "phx"=>36450, "daemon"=>36451, "spider-listen-to-tau"=>36452}
[2022-09-02 14:19:58] Booting Scsynth
[2022-09-02 14:19:58] ---- Audio Config Issue ----
[2022-09-02 14:19:58] Could not find C:/Users/nlb/.sonic-pi/config/audio-settings.toml - reverting to default audio options.
[2022-09-02 14:19:58] This is not critical - reverting to default audio options
[2022-09-02 14:19:58] ----------------------------
[2022-09-02 14:19:58] Got Audio Settings toml hash: {}
[2022-09-02 14:19:58] Unified Audio Settings toml hash: {}
[2022-09-02 14:19:58] Combined Audio Settings toml hash with GUI scsynth inputs hash: {"-i"=>"0"}
[2022-09-02 14:19:58] Merged Audio Settings toml hash: {"-u"=>36447, "-a"=>"1024", "-m"=>"131072", "-D"=>"0", "-R"=>"0", "-l"=>"1", "-i"=>"0", "-o"=>"16", "-b"=>"4096", "-B"=>"127.0.0.1", "-U"=>"C:/Program Files/Sonic Pi/app/server/native/plugins"}
[2022-09-02 14:19:58] Process Booter - booting C:/Program Files/Sonic Pi/app/server/native/scsynth.exe with args ["-u", "36447", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1", "-U", "C:/Program Files/Sonic Pi/app/server/native/plugins"]
[2022-09-02 14:19:58] C:/Program Files/Sonic Pi/app/server/native/scsynth.exe -u 36447 -a 1024 -m 131072 -D 0 -R 0 -l 1 -i 0 -o 16 -b 4096 -B 127.0.0.1 -U C:/Program Files/Sonic Pi/app/server/native/plugins
[2022-09-02 14:19:58] Waiting for the SuperCollider Server to have booted...
[2022-09-02 14:19:58] Sending /status to server: localhost:36447
[2022-09-02 14:19:58] log: UTF-8, UTF-8, 
[2022-09-02 14:19:58] log: UTF-8, UTF-8, Device options:
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : Line (2- Steinberg UR22mkII )   (device #1 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : Mixage stéréo (Realtek(R) Audio   (device #2 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : CABLE Output (VB-Audio Virtual    (device #3 with 8 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : Microsoft Sound Mapper - Output   (device #4 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : Line (2- Steinberg UR22mkII )   (device #5 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : BenQ GW2480 (NVIDIA High Defini   (device #6 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - MME : Haut-parleurs (Realtek(R) Audio   (device #7 with 0 ins 8 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : Pilote de capture audio principal   (device #8 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : Line (2- Steinberg UR22mkII )   (device #9 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : Mixage stéréo (Realtek(R) Audio)   (device #10 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : CABLE Output (VB-Audio Virtual Cable)   (device #11 with 8 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : Périphérique audio principal   (device #12 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : Line (2- Steinberg UR22mkII )   (device #13 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : BenQ GW2480 (NVIDIA High Definition Audio)   (device #14 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows DirectSound : Haut-parleurs (Realtek(R) Audio)   (device #15 with 0 ins 8 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - ASIO : FL Studio ASIO   (device #16 with 2 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - ASIO : Yamaha Steinberg USB ASIO   (device #17 with 2 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - ASIO : ZOOM H Series ASIO   (device #18 with 0 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WASAPI : Line (2- Steinberg UR22mkII )   (device #19 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WASAPI : BenQ GW2480 (NVIDIA High Definition Audio)   (device #20 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WASAPI : Haut-parleurs (Realtek(R) Audio)   (device #21 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WASAPI : Mixage stéréo (Realtek(R) Audio)   (device #22 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WASAPI : Line (2- Steinberg UR22mkII )   (device #23 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WASAPI : CABLE Output (VB-Audio Virtual Cable)   (device #24 with 1 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Speakers (Realtek HD Audio output)   (device #25 with 0 ins 8 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Mixage stéréo (Realtek HD Audio Stereo input)   (device #26 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Entrée ligne (Realtek HD Audio Line input)   (device #27 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Microphone (Realtek HD Audio Mic input)   (device #28 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Line (Steinberg UR22mkII -1)   (device #29 with 2 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Line (Steinberg UR22mkII -1)   (device #30 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Output (NVIDIA High Definition Audio)   (device #31 with 0 ins 2 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : CABLE Output (VB-Audio Point)   (device #32 with 8 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Speakers (VB-Audio Point)   (device #33 with 0 ins 8 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - Windows WDM-KS : Microphone (Logitech Mic (Communicate STX))   (device #34 with 1 ins 0 outs)
[2022-09-02 14:19:58] log: UTF-8, UTF-8, 
[2022-09-02 14:19:58] log: UTF-8, UTF-8, Requested devices:
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   Out:
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   - (default)
[2022-09-02 14:19:58] log: UTF-8, UTF-8, 
[2022-09-02 14:19:58] log: UTF-8, UTF-8, Selecting default system output device
[2022-09-02 14:19:58] log: UTF-8, UTF-8, 
[2022-09-02 14:19:58] log: UTF-8, UTF-8, Booting with:
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   Out: MME : Line (2- Steinberg UR22mkII )
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   Sample rate: 44100.000
[2022-09-02 14:19:58] log: UTF-8, UTF-8,   Latency (in/out): 0.000 / 0.091 sec
[2022-09-02 14:19:58] log: UTF-8, UTF-8, SC_AudioDriver: sample rate = 44100.000000, driver's block size = 64
[2022-09-02 14:19:58] log: UTF-8, UTF-8, SuperCollider 3 server ready.
[2022-09-02 14:19:59] Sending /status to server: localhost:36447
[2022-09-02 14:20:00] Sending /status to server: localhost:36447
[2022-09-02 14:20:01] Sending /status to server: localhost:36447
[2022-09-02 14:20:02] Sending /status to server: localhost:36447
[2022-09-02 14:20:03] Sending /status to server: localhost:36447
[2022-09-02 14:20:04] Sending /status to server: localhost:36447
[2022-09-02 14:20:05] Sending /status to server: localhost:36447
[2022-09-02 14:20:06] Sending /status to server: localhost:36447
[2022-09-02 14:20:07] Sending /status to server: localhost:36447
[2022-09-02 14:20:08] Sending /status to server: localhost:36447
[2022-09-02 14:20:09] Sending /status to server: localhost:36447
[2022-09-02 14:20:10] Sending /status to server: localhost:36447
[2022-09-02 14:20:11] Sending /status to server: localhost:36447
[2022-09-02 14:20:12] Sending /status to server: localhost:36447
[2022-09-02 14:20:13] Sending /status to server: localhost:36447
[2022-09-02 14:20:14] Sending /status to server: localhost:36447
[2022-09-02 14:20:15] Sending /status to server: localhost:36447
[2022-09-02 14:20:16] Sending /status to server: localhost:36447
[2022-09-02 14:20:17] Sending /status to server: localhost:36447
[2022-09-02 14:20:18] Sending /status to server: localhost:36447
[2022-09-02 14:20:19] Sending /status to server: localhost:36447
[2022-09-02 14:20:20] Sending /status to server: localhost:36447
[2022-09-02 14:20:21] Sending /status to server: localhost:36447
[2022-09-02 14:20:22] Sending /status to server: localhost:36447
[2022-09-02 14:20:23] Sending /status to server: localhost:36447
[2022-09-02 14:20:24] Sending /status to server: localhost:36447
[2022-09-02 14:20:25] Sending /status to server: localhost:36447
[2022-09-02 14:20:26] Sending /status to server: localhost:36447
[2022-09-02 14:20:27] Sending /status to server: localhost:36447
[2022-09-02 14:20:28] Unable to connect to SuperCollider Audio Server (Promise timed out after 30 seconds.).
[2022-09-02 14:20:28] Extracting Scsynth info
[2022-09-02 14:20:28] sending ERROR to gui
[2022-09-02 14:20:28] Daemon Booter is now exiting.
[2022-09-02 14:20:28] Cleaning up any running processes...
[2022-09-02 14:20:28] Process Booter - killing C:/Program Files/Sonic Pi/app/server/native/scsynth.exe with pid 15656 and args ["-u", "36447", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1", "-U", "C:/Program Files/Sonic Pi/app/server/native/plugins"], wait_thr status: #<Process::Waiter:0x000001753960c0e8 sleep>, sleep
[2022-09-02 14:20:28] Sending KILL kill command to 15656
[2022-09-02 14:20:28] Process 15656 still running, waiting for it to finish... [5]
[2022-09-02 14:20:29] Process 15656 terminated
[2022-09-02 14:20:29] Daemon Booter - Over and Out.

Ok so how to specify the right audio interface into a lovely audio-settings.toml file as proposed ?

i want to use this detected audiocard.

ASIO : Yamaha Steinberg USB ASIO (device #17 with 2 ins 2 outs)

## =================
## Soundcard Options
## =================

sound_card_name = "ASIO : Yamaha Steinberg USB ASIO   (device #17 with 2 ins 2 outs)"
sound_card_sample_rate = 44100
sound_card_buffer_size = 64
# num_inputs = 16
# num_outputs = 16

Not sure the sound_card_name will be understood by sonic pi ?
Thanks for any feedbacks !


Nicolas

The section of the sound card description (device #17 with 2 ins 2 outs) is information about the sound card, not the name of the sound card.

Also, you don’t need to pass the full name in the .toml file, just a unique subset. So try:

sound_card_name = "ASIO : Yamaha"

Good luck!

Hi @Eli,

there’s lots of information/tutorials etc. on audio sample rates. For example: Digital Audio Basics: Audio Sample Rate and Bit Depth (izotope.com)

Unfortunately, SuperCollider, the underlying synthesis engine has a hard requirement that the input and output audio rates are the same. It’s likely that your USB headphones either have a built-in mic that has a different rate to the headphones (quite typical especially with bluetooth headsets) or that it’s a higher rate than the default input on your system.

The only thing you can do to get it to work is to set the rates to be the same - sadly there’s no way around this. Sorry.

It’s hardly your fault, Sam, no need to apologise.

Blame Microsloth, or the headphone OEM…
if they made it simpler, there’d be no need
for us all to jump through these hoops. :slight_smile:

Eli…