Sha256: f0c931bde8ccb284c7258635b31ca0d1de26422263fc98aa620aaec423b5032a
Contents?: true
Size: 557 Bytes
Versions: 2
Compression:
Stored size: 557 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "wait_up/pipeline" unless ARGV.length == 2 warn "Usage: wait_up-cli [file] [tempo]" exit 1 end filename = ARGV[0] tempo = ARGV[1].to_f Gst.init pipeline = WaitUp::Pipeline.new(filename, tempo) mainloop = GLib::MainLoop.new(GLib::MainContext.default, true) bus = pipeline.play_bin.bus bus.add_signal_watch bus.signal_connect "message" do |_bus, message, _ud| case message.type when Gst::MessageType::ERROR, Gst::MessageType::EOS mainloop.quit end end pipeline.play mainloop.run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wait_up-0.1.2 | bin/wait_up-cli |
wait_up-0.1.1 | bin/wait_up-cli |