rockbox_ffi 0.1.2
Standard Ruby FFI library code
“Fiddle-based bindings over the librockbox_ffi C ABI: audio metadata parsing, the Rockbox DSP pipeline (EQ / tone / surround / compressor /…”
Contains an unbounded block loopLiteral references a .dylib name
SHA-256de1e8cc02fc98f3ee6fca57dbdf537a1354bc21b9fbcd3e39bcfa0d91bc584fa
MaleculeH(Ds)
Evidence
8:13… Mirrors include/rockbox_ffi.h — keep in sync with the C ABI.
9
10require "fiddle"
11require "fiddle/import"
12
13module RockboxFFI
14 # Locate the prebuilt shared library. Precedence:
15 # 1. ROCKBOX_FFI_LIB env var (explicit override)
16 …
17:44… here (repo checkout / dev)
18 def self.library_path
19 names = %w[librockbox_ffi.dylib librockbox_ffi.so rockbox_ffi.dll]
20 tried = []
21
⋯6 lines
32:20… f File.exist?(cand)
33 end
34
35 # Walk up from this file looking for target/release (repo checkout).
36 dir = File.expand_path(__dir__)
37 loop do
38 rel = File.join(dir, "target", "release")
39 if File.directory?(rel)
40 names.each do |name|
41 cand = Fil …
52:60… d library. Set " \
53 "ROCKBOX_FFI_LIB or run `cargo build --release -p " \
54 "rockbox-ffi`. Tried:\n #{tried.join("\n ")}"
55 end
56
57 # Thin Fiddle wrappers ove …
8Ruby bindings for the Rockbox **DSP**, **metadata**, and **playback** engine,
9via [`fiddle`](https://docs.ruby-lang.org/en/master/Fiddle.html) (Ruby stdlib)
10over the prebuilt `librockbox_ffi` shared library. No native extension is
No evidence locations were recorded for this file. Raw result