-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Any chance you could update this library to support more modern versions of Ruby like 3.0 and 2.7? I noticed a lack of cross-platform sound libraries in Ruby. All I need is something that could play WAV, MIDI and/or MP3 files at minimum. Java has it. Why does Ruby not have it as cross-platform? (I did see some Mac and Windows gems. I could perhaps write a gem that tries to unify them, but I was wondering if your gem could accomplish the cross-platform sound support goal better in the future)
BTW, this is the error I get in Ruby 3 when trying to install the sound gem:
% gem install sound
Fetching sound-0.1.0.gem
Fetching ffi-1.3.1.gem
Building native extensions. This could take a while...
ERROR: Error installing sound:
ERROR: Failed to build gem native extension.
current directory: /Users/andymaleh/.rvm/gems/ruby-3.0.2@gtk-test/gems/ffi-1.3.1/ext/ffi_c
/Users/andymaleh/.rvm/rubies/ruby-3.0.2/bin/ruby -I /Users/andymaleh/.rvm/rubies/ruby-3.0.2/lib/ruby/site_ruby/3.0.0 -r ./siteconf20211003-2840-9f3fkt.rb extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... no
checking for ruby_native_thread_p()... yes
checking for rb_thread_call_with_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile
current directory: /Users/andymaleh/.rvm/gems/ruby-3.0.2@gtk-test/gems/ffi-1.3.1/ext/ffi_c
make DESTDIR\= clean
current directory: /Users/andymaleh/.rvm/gems/ruby-3.0.2@gtk-test/gems/ffi-1.3.1/ext/ffi_c
make DESTDIR\=
compiling AbstractMemory.c
AbstractMemory.c:503:9: error: implicit declaration of function 'rb_safe_level' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (rb_safe_level() >= 1 && OBJ_TAINTED(str)) {
^
1 error generated.
make: *** [AbstractMemory.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/andymaleh/.rvm/gems/ruby-3.0.2@gtk-test/gems/ffi-1.3.1 for inspection.
Results logged to /Users/andymaleh/.rvm/gems/ruby-3.0.2@gtk-test/extensions/x86_64-darwin-20/3.0.0/ffi-1.3.1/gem_make.out
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels