Skip to content

Commit 27b00ec

Browse files
committed
Spider - remove scsynth settings as this is now handled by the daemon
1 parent b7cde0d commit 27b00ec

File tree

4 files changed

+4
-106
lines changed

4 files changed

+4
-106
lines changed

app/server/ruby/lib/sonicpi/config/scsynth_settings.rb

Lines changed: 0 additions & 91 deletions
This file was deleted.

app/server/ruby/lib/sonicpi/lang/sound.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def self.included(base)
8686
@job_mixers_mutex = Mutex.new
8787
@job_busses = {}
8888
@job_busses_mutex = Mutex.new
89-
@mod_sound_studio = Studio.new(ports, msg_queue, @scsynth_opts, @scsynth_clobber_args, @system_state, @register_cue_event_lambda)
89+
@mod_sound_studio = Studio.new(ports, msg_queue, @system_state, @register_cue_event_lambda)
9090

9191
buf_lookup = lambda do |name, duration=nil|
9292
# scale duration to the current BPM

app/server/ruby/lib/sonicpi/runtime.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
require_relative "sthread"
2626
require_relative "version"
2727
require_relative "config/settings"
28-
require_relative "config/scsynth_settings"
2928
require_relative "preparser"
3029
require_relative "event_history"
3130
require_relative "thread_id"
@@ -1326,15 +1325,8 @@ def initialize(ports, msg_queue, user_methods)
13261325
@git_hash = __extract_git_hash
13271326
gh_short = @git_hash ? "-#{@git_hash[0, 5]}" : ""
13281327
@settings = Config::Settings.new(system_cache_store_path)
1329-
begin
1330-
@audio_settings = SonicPi::Config::ScsynthSettings.new(user_audio_settings_path)
1331-
rescue
1332-
# log error
1333-
log "Unable to load user audio settings at #{user_audio_settings_path}... reverting to defaults"
1334-
@audio_settings = SonicPi::Config::ScsynthSettings.new("", dummy: true)
1335-
end
1336-
@scsynth_clobber_args = @audio_settings.scsynth_opts_override
1337-
@scsynth_opts = @audio_settings.scsynth_opts
1328+
# @scsynth_clobber_args = @audio_settings.scsynth_opts_override
1329+
# @scsynth_opts = @audio_settings.scsynth_opts
13381330
@version = Version.new(3, 4, 0, "dev#{gh_short}")
13391331
@server_version = __server_version
13401332
@life_hooks = LifeCycleHooks.new

app/server/ruby/lib/sonicpi/studio.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ class StudioCurrentlyRebootingError < StandardError ; end
2222

2323
attr_accessor :cent_tuning
2424

25-
def initialize(ports, msg_queue, scsynth_opts, scsynth_clobber, state, register_cue_event_lambda)
25+
def initialize(ports, msg_queue, state, register_cue_event_lambda)
2626

2727
STDOUT.puts "studio init"
2828
STDOUT.flush
2929

3030
@state = state
3131
@scsynth_port = ports[:scsynth_port]
3232
@scsynth_send_port = ports[:scsynth_send_port]
33-
@osc_cues_port = ports[:osc_cues_port]
3433
@msg_queue = msg_queue
3534
@error_occured_mutex = Mutex.new
3635
@error_occurred_since_last_check = false
@@ -41,8 +40,6 @@ def initialize(ports, msg_queue, scsynth_opts, scsynth_clobber, state, register_
4140
@sample_format = "int16"
4241
@paused = false
4342
@register_cue_event_lambda = register_cue_event_lambda
44-
@scsynth_opts = scsynth_opts
45-
@scsynth_clobber = scsynth_clobber
4643
init_scsynth
4744
reset_server
4845
init_studio

0 commit comments

Comments
 (0)