rockbox_ffi 0.5.0 → 0.5.1

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: 98d2db65260fc33b5cfd9cf8963c2f96b782079c999ded173f64611a1f3d2554
4
- data.tar.gz: 8b6fa4f9f221aad0367c913cc6ce494ea97ce62d3658309cc6ed8252003e28d1
3
+ metadata.gz: 35a95e714d15cbe6ef8a424ae9ba8313a57c8a130a7c7ef01f77d56bb087c6b0
4
+ data.tar.gz: 568caa44c1c1792fd2f084c9e07e7e8d7d9d354394b14a9a53f6e59363df67af
5
5
  SHA512:
6
- metadata.gz: 97340abbfae011f7f3f09a0463046c4831eef6d429ea6d0f1ea0a814a8aac085a12309d46fe7e5ee670772aed59cf9045cbfe72606bdf34e0aab685c534aab04
7
- data.tar.gz: b28b979145c98b851ab27cf731fb9929603a946a17435e656cb2f350af594bc8fefe525545c6bd2dafa3dd3a6236dcf998b672636f3d09ce16c95b94069d3d3d
6
+ metadata.gz: a5c84973dcb05221f7d190ebb59e9e5ed3916123a3799ecf523db9257de84fe5fbba7fbd822f4a9e8ab49907952ae3c93d0d703e2328a7a6259312c670463e04
7
+ data.tar.gz: b1b75343e699340e46957efd6de84c5ac9680707eff819ea8e68a9e1043d9e274f4962c801c9196e8d65a8f45e5dafcfc05accfe3f42c960d54b674c1947e6f2
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
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: ruby
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