rockbox_ffi 0.5.0-x86_64-linux → 0.5.1-x86_64-linux
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.
- checksums.yaml +4 -4
- data/examples/play.rb +6 -2
- data/lib/rockbox_ffi/version.rb +1 -1
- data/vendor/librockbox_ffi.so +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8909ee2c3bb3c2220964f7e15cc2d87963eb9e8e332986ab6cc211fac8b3b026
|
|
4
|
+
data.tar.gz: 5cc7ca0310a2408dbf82fbe9c40bd09655ed5cd1d6a319b70fa9173708027d79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a96a26ca1e775ad2a47174b53cb6edb8b2bba209121f4059bfe91d4fe183b1fe33f600abfda4027b44cddd54ae9a60c04a6bbe469b86268cd32c84c173f6937a
|
|
7
|
+
data.tar.gz: 0e443ebdd162baa9752e68368931e895501a7932f183a3ac41ade6705cade6565723995623ff5906e6a13280b4af24e7a0ff8e038135f5a0845fc8c9fb602e8f
|
data/examples/play.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Play
|
|
3
|
+
# Play a local audio file or an http(s):// URL through the real output device.
|
|
4
4
|
#
|
|
5
|
-
# Run: ruby -Ilib examples/play.rb [path-to-audio]
|
|
5
|
+
# Run: ruby -Ilib examples/play.rb [path-to-audio | http(s)-url]
|
|
6
6
|
|
|
7
7
|
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
|
8
8
|
require "rockbox_ffi"
|
|
@@ -10,7 +10,11 @@ require "rockbox_ffi"
|
|
|
10
10
|
REPO = File.expand_path("../../..", __dir__)
|
|
11
11
|
FIXTURE = File.join(REPO, "crates", "rocksky", "fixtures", "08 - Internet Money - Speak(Explicit).m4a")
|
|
12
12
|
|
|
13
|
+
# The queue accepts local files and http(s):// URLs (remote media / live radio).
|
|
13
14
|
file = ARGV[0] || FIXTURE
|
|
15
|
+
if !RockboxFFI.is_url?(file) && !File.exist?(file)
|
|
16
|
+
abort "no such file: #{file}"
|
|
17
|
+
end
|
|
14
18
|
|
|
15
19
|
player = RockboxFFI::Player.new(volume: 0.8)
|
|
16
20
|
# Mutating setters return self, so the setup reads as one fluent chain.
|
data/lib/rockbox_ffi/version.rb
CHANGED
data/vendor/librockbox_ffi.so
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rockbox_ffi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Tsiry Sandratraina
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fiddle
|