dtas.git  about / heads / tags
duct tape audio suite for *nix
blob fbfdf50c0afce42ca68111c1000f72552e4f0fa3 397 bytes (raw)
$ git show v0.9.0:lib/dtas/compat_rbx.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)

# ref: https://github.com/rubysl/rubysl-io-wait/issues/1
# this ignores buffers and is Linux-only
class IO
  def nread
    buf = "\0" * 8
    ioctl(0x541B, buf)
    buf.unpack("l_")[0]
  end
end if ! IO.method_defined?(:nread) && RUBY_PLATFORM =~ /linux/

git clone git://80x24.org/dtas.git
git clone https://80x24.org/dtas.git