Skip to content

Commit

Permalink
Audio - fix control delta to work correctly on Raspberry Pi 2
Browse files Browse the repository at this point in the history
  • Loading branch information
samaaron committed Jul 30, 2015
1 parent 9902083 commit 8978962
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/server/sonicpi/lib/sonicpi/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def raspberry_pi_1?
os == :raspberry && @@raspberry_pi_1
end

def raspberry_pi_2?
os == :raspberry && !@@raspberry_pi_1
end


def num_audio_busses_for_current_os
if os == :raspberry
64
Expand All @@ -60,6 +65,8 @@ def default_sched_ahead_time
def default_control_delta
if raspberry_pi_1?
0.02
elsif raspberry_pi_2?
0.013
else
0.005
end
Expand Down

0 comments on commit 8978962

Please sign in to comment.