Method: DTAS::Player#initialize
- Defined in:
- lib/dtas/player.rb
#initialize ⇒ Player
Returns a new instance of Player.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/dtas/player.rb', line 31 def initialize @tl = DTAS::Tracklist.new @state_file = nil @socket = nil @srv = nil @queue = [] # files for sources, or commands @paused = false @format = DTAS::Format.new @bypass = [] # %w(rate bits channels) (not worth Hash overhead) @sinks = {} # { user-defined name => sink } @targets = [] # order matters @rg = DTAS::RGState.new # sits in between shared effects (if any) and sinks @sink_buf = DTAS::Buffer.new @current = nil @watchers = {} @trim = nil @source_map = { "sox" => (sox = DTAS::Source::Sox.new), "av" => DTAS::Source::Av.new, "ff" => DTAS::Source::Ff.new, "splitfx" => DTAS::Source::SplitFX.new(sox), } source_map_reload end |