lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Adrian Sietsma wrote:
i'm looking at doing some voip work (in windows), and thinking of lua...
(but that's some way off yet)

step 1: add a sound record/play library; has anyone done this ?

what i would like is feedback on posible uses / abstractions. i know Windows audio well, but not linux / unix.

i'm considering an abstration like io/file : off the cuff -

object = sound.open(format)
object = sound.readfile(filename)

object:record(...)

...
object.play(...)

so :  what belongs to which level of abstraction ?

i aim to (eventually) build a basic win32 sound library.
it raises some interesting threading / callback issues too.

Pure Win32 or portable to Linux that you mention above?

I have no experience with it, but I often see references to OpenAL for audio uses: http://www.openal.org/

I believe a Lua 4 binding was made within Yindo, but this project is outdated (as is Lua 4) and probably dead (lack of resources and time?), although the site <http://www.yindo.com/> is still alive. Too bad, it was interesting.

FMOD is also quite used, but not free for commercial use (which is fair, IMHO). http://www.fmod.org/

I didn't see Lua bindings for these in http://lua-users.org/wiki/LibrariesAndBindings Freya <http://www.geekzine.net/freya/> uses FMOD, but through the Allegro library.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --