class AMixerCapture2019
Public Class Methods
new(notch: 5, fade_interval: 0.15, debug: false)
click to toggle source
# File lib/amixer2019.rb, line 76 def initialize(notch: 5, fade_interval: 0.15, debug: false) @notch, @fade_interval, @debug = notch, fade_interval, debug # the microphone can sometimes be on a different card which we check here @control = 'Mic -c ' + (`amixer scontrols`[/'Capture'/] ? 0 : 1).to_s query(`amixer get #{@control}`) end