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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66e910259f2993f32b4ba4fa483a283c2c5085166c1a93a1e10c9078e32cf77e
4
- data.tar.gz: 1eb8cda3a32dbd5c3f2bde3ac5ecdbbe761432a0f03445a28fe16af129249d62
3
+ metadata.gz: 8909ee2c3bb3c2220964f7e15cc2d87963eb9e8e332986ab6cc211fac8b3b026
4
+ data.tar.gz: 5cc7ca0310a2408dbf82fbe9c40bd09655ed5cd1d6a319b70fa9173708027d79
5
5
  SHA512:
6
- metadata.gz: '01557169babe85907ccf389cc97c1afe1aef3e18f5a23df595769ee7f5c2975a7a8f99bcc1716f67f6d7105318831d3c2f8c83976fc8e4645148a6d508f8806d'
7
- data.tar.gz: 383be70318f98b54d6e3226744d18a88cbfbf8790fdcdf149753c715ab3056873a6799361c5c0021fb04dd2d17d940bf2883f849eb0f8caabc109a4936966a13
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 an audio file through the real output device.
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.
@@ -1,3 +1,3 @@
1
1
  module RockboxFFI
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2026-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle