Greetings.  I wrote:
> I've just discovered Patricio Paez' Python module:
>  http://pp.com.mx/python/alsaseq/project.html
> which makes available some of alsa library:
>  http://alsa-project.org/alsa-doc/alsa-lib/seq.html
> I'd like to make a call-compatible translation of this into Lua
> (my first experience in calling C from Lua, so there may be
>  some learning curve involved :-)

I used the example in Lua Programming Gems round p.335,
and it seems a good, flexible way to set things up.
I really like how smoothly luarocks compiles these C-modules.

> Just checking first - is there anyone else working on an alsa module ?

Fabio wrote:
> I think you should ask this again in the Lua list. :-)

Probably should have done, but I was on my way already...  The
version that is now 1.00 passes all tests, and I'd be delighted
if it could be included in luarocks.org/repositories/rocks ...

The rockspec is at:
  http://www.pjb.com.au/comp/lua/midialsa-1.00-0.rockspec
and also below the ~/.sig

Doc:      http://www.pjb.com.au/comp/lua/midialsa.html
Tarball:  http://www.pjb.com.au/comp/lua/midialsa-1.00.tar.gz

I'm now going to do a translation into Perl xs which should
appear in CPAN in two or three weeks, probably as MIDI::ALSA
I've cleared the MIDI::ALSA name with comp.lang.perl.modules
which is usually the hardest part of creating a new CPAN module :-)

Regards,  Peter Billam

http://www.pjb.com.au       [email protected]      (03) 6278 9410
"Was der Meister nicht kann,   vermöcht es der Knabe, hätt er
 ihm immer gehorcht?"   Siegfried to Mime, from Act 1 Scene 2
--------------------------------------------------------------
package = "midialsa"
version = "1.00-0"
source = {
   url = "http://www.pjb.com.au/comp/lua/midialsa-1.00.tar.gz";,
   md5 = "f8f42193380ddb5f8462c9a3ee948c6c"
}
description = {
   summary = "Provides access to the ALSA sequencer",
   detailed = [[
      This is a call-compatible translation into Lua of the Python
      module alsaseq.py by Patricio Paez. It gives access to the ALSA
      library, offering functions client, connectfrom, connectto, fd, id,
      input, inputpending, output, start, status, stop and syncoutput 
   ]],
   homepage = "http://www.pjb.com.au/comp/lua/midialsa.html";,
   license = "MIT/X11"
}
dependencies = {
   "lua >= 5.1"
}
build = {
   type = "builtin",
   modules = {
      ["midialsa"] = "midialsa.lua",
      ["C-midialsa"] = {
         sources   = { "C-midialsa.c" },
         libraries = { "asound" },
      }
   },
   copy_directories = { "doc", "test" }
}


_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to