M
Marcin Lewandowski
Hi,
I'm trying to write ruby interface to JACK audio library. I've chosen
RubyInline due it's simplicity. What I want to achieve is to have ruby
code like this:
client = JACK::Client.new "my_name"
puts client.get_sample_rate
To achieve that I need to pass pointer to variable of jack_client_t*
from libjack from one function to another. What I tried to do is
available at http://pastebin.com/m3b6ee0c9 but as you can expect it
doesn't work.
How can I do that? Is there any way to save pointer in instance of
ruby class e.g. in the same way as I can access strings?
Thanks in advance,
m.
I'm trying to write ruby interface to JACK audio library. I've chosen
RubyInline due it's simplicity. What I want to achieve is to have ruby
code like this:
client = JACK::Client.new "my_name"
puts client.get_sample_rate
To achieve that I need to pass pointer to variable of jack_client_t*
from libjack from one function to another. What I tried to do is
available at http://pastebin.com/m3b6ee0c9 but as you can expect it
doesn't work.
How can I do that? Is there any way to save pointer in instance of
ruby class e.g. in the same way as I can access strings?
Thanks in advance,
m.