diff options
author | Eric Wong <e@80x24.org> | 2019-01-02 23:13:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-02 23:13:46 +0000 |
commit | a11b5acf4d9fc7e49c04cd03d3136d1a1325ac4c (patch) | |
tree | 359a8d44884fc1db9cf6ef7d3a17040f9731269a /lib | |
parent | c77955f92628b5125292f098470d9f701fa1c490 (diff) | |
download | dtas-a11b5acf4d9fc7e49c04cd03d3136d1a1325ac4c.tar.gz |
This fixes hanging when using a single audio output for Linux users using splice.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/buffer/splice.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/buffer/splice.rb b/lib/dtas/buffer/splice.rb index c6c0ee2..281ecfd 100644 --- a/lib/dtas/buffer/splice.rb +++ b/lib/dtas/buffer/splice.rb @@ -32,7 +32,7 @@ module DTAS::Buffer::Splice # :nodoc: def broadcast_one(targets, limit = nil) # single output is always non-blocking limit ||= MAX_AT_ONCE_1 - s = SleepyPenguin.splice(@to_io, targets[0], limit, F_MOVE, TRY) + s = SleepyPenguin.splice(@to_io, targets[0], limit, F_MOVE|F_NONBLOCK, TRY) if Symbol === s targets # our one and only target blocked on write else |