rumu 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rumu +4 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b10238932023ff15c41d24d35b464e641ab0296e3585b7b0810dfa2236af0667
4
- data.tar.gz: 4ca176a03fff38fb7ba458451cf55501dc54815521091678886faab1c853ebfc
3
+ metadata.gz: d383b8189fcc0514654fcbdba40b979f98c223f87f12943f79c937ba603aee17
4
+ data.tar.gz: b9b6255f983fcd65068f83bb503a5ff39ee0c20108cd95d605ae7784edeb09a8
5
5
  SHA512:
6
- metadata.gz: aaae6228959f26c275844f2082b67f95c49a312a867e6d1f3e4c6a5a8faa065b0e79631792b80462a4311910c8d3264c3fd7383749041a13689ba8937a497f88
7
- data.tar.gz: 72671d72da7b9572091257497f8a26132d8cf1ef1fba6e42a271302c1b505735ead974a7b31a2e88f93f04c76eba499bd6c2b26742c1730fb9fcb3fac3a33b3a
6
+ metadata.gz: bb79620ecb1de86bc420ec2d1231f1764455fd11b5202249d5f82c3e40c1fe9b8ad7250cb5925d53e36f02995c18b8b04ee3ba8afca7507a462fdb607a03a047
7
+ data.tar.gz: '038c6981fc23134410864a476c1008b9f06da6033f71307837ed33e69ba46df19e9920d67be29ac27259e91fe7c8b2cb8a2b654c1c35ffaef80abaee529d9560'
data/bin/rumu CHANGED
@@ -5,12 +5,13 @@ require 'io/console'
5
5
  require 'pathname'
6
6
 
7
7
  pkg='rumu'
8
- ver='0.3.2'
8
+ ver='0.3.3'
9
9
  pkgd="#{Dir.home}/.config/#{pkg}"
10
10
 
11
11
  chan,rate,word=2,44100,4
12
12
  ff_fmt="-ac #{chan} -ar #{rate} -f f#{word*8}le"
13
13
 
14
+ Dir.mkdir(pkgd) unless File.directory?(pkgd)
14
15
  File.write(pkgd+"/dev","-f pulse default") unless File.file?("#{pkgd}/dev")
15
16
  ff_out=File.read(pkgd+"/dev")
16
17
 
@@ -49,12 +50,11 @@ pt=Thread.new{
49
50
  when :load #load new track
50
51
  [io,ie].each{|x|x.close} unless !io or io.closed?
51
52
  ii,io,ie,it = Open3.popen3 "ffmpeg -i #{Shellwords.escape(list[list_i])} #{ssoff} #{ff_fmt} -"
52
- print ' '*help.length
53
- help=''
54
- puts "\r#{list[list_i][prefix.length..-1]}"
55
53
  ii.close
56
54
  cycle=0 unless ssoff.length > 0
55
+ puts "#{' '*help.length}\r#{list[list_i][prefix.length..-1]}"
57
56
  ssoff=''
57
+ help=''
58
58
  mode=:play
59
59
  when :play
60
60
  oi.write(io.read(word*chan*rate))
@@ -84,7 +84,6 @@ until :quit == mode
84
84
  mode=:load
85
85
  when 'q'
86
86
  mode=:quit
87
- Dir.mkdir(pkgd) unless File.directory?(pkgd)
88
87
  File.write(pkgd+"/list",list.join("\n"))
89
88
  File.write(pkgd+"/pos",list_i.to_s+"\n"+cycle.to_s)
90
89
  when ''
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Cook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-27 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: rumu is an aggressively minimized audio player that plays a playlist
14
14
  gaplessly leveraging command-line ffmpeg and pipes. After a quit, it will return