Sha256: 37ad7efb49e716feb2149b7db0fb2c5ae823d32a7213c17affdc3d654dc25249

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

# backtick_javascript: true

module Browser; class Event

class AudioProcessing < Event
  handles 'audioprocess'
  
  def self.supported?
    Browser.supports? 'Event.AudioProcessing'
  end

  class Definition < Definition
    alias_native :time=, :playbackTime=
    alias_native :input=, :inputBuffer=
    alias_native :output=, :outputBuffer=
  end

  if Browser.supports? 'Event.constructor'
    def self.construct(name, desc)
      `new AudioProcessingEvent(#{name}, #{desc})`
    end
  end if supported?

  alias_native :time, :playbackTime
  alias_native :input, :inputBuffer
  alias_native :output, :outputBuffer
end

end; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-browser-0.3.5 opal/browser/event/audio_processing.rb
opal-browser-0.3.4 opal/browser/event/audio_processing.rb