nanki / ffi-portaudio Goto Github PK
View Code? Open in Web Editor NEWRuby bindings for PortAudio.
License: MIT License
Ruby bindings for PortAudio.
License: MIT License
γI would like to use ffi-portaudio, but the changes in #4 have not been applied, so I need to patch it by myself even if I install the gem. If you install from source code, the version of the dependent library of the gem is outdated, so you need to rewrite the version of the dependent library. For example, using bundler 1.0 is a difficult thing to do in this day and age.
γCan I use gemspec to release a new gem or update the version of the dependent library?
Translated with www.DeepL.com/Translator (free version)
Hi,
Calling the .close
method on the AudioStream
causes my process to hang, unresponsive even to Ctrl-C. I have to kill it.
I'm using the Speaker example code, with the simple addition of this method in the Speaker
module:
def close
@@stream.close
end
Then I call Speaker.close
at the end of the example (instead of muting it).
I get this error when I try to run the examples:
~/.rvm/gems/ruby-2.1.0/gems/ffi-1.9.3/lib/ffi/library.rb:261:in `attach_function': Function 'Pa_GetVersion' not found in [libportaudio.so] (FFI::NotFoundError)
from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio/api.rb:9:in `<module:API>'
from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio/api.rb:1:in `<top (required)>'
from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio.rb:9:in `<module:PortAudio>'
from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio.rb:3:in `<top (required)>'
from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from spectrum.rb:1:in `<main>'
On this system:
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
Linux 3.12-1-amd64 #1 SMP Debian 3.12.8-1 (2014-01-19) x86_64 GNU/Linux
I also tried it with older ruby versions but that didn't change anything. (libportaudio-dev [18.1-7.1] is installed)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.