Giter Site home page Giter Site logo

ffi-portaudio's People

Contributors

dfl avatar hainesr avatar nanki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ffi-portaudio's Issues

Closing the audiostream hangs the process

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).

Could you please update this gem or update the gemspec?

γ€€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)

`attach_function': Function 'Pa_GetVersion' not found in [libportaudio.so] (FFI::NotFoundError)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.