john wrote:
> hello I'm working on a game with the pipmak engine.
> and I'm at a point where I need sound.
> is there any way to add sound with pipmak.
There is no built-in sound support yet. There have been some ideas for
preliminary workarounds, but they have their disadvantages too, and as
far as I know no one has ever tried implementing them. It has been
suggested by someone that the os.execute() Lua function could be used to
run an external command-line sound player (such as the "playwave" or
"playmus" examples from SDL_mixer). The "os" library is currently not
activated in Pipmak (and I'd rather keep it that way for official
releases), but that's a trivial change if you can compile Pipmak
yourself. Another possibility may be using the loadlib() Lua function to
load some self-written sound player library. This function is enabled in
the latest Mac OS X release, I'm not sure about Linux and Windows. Both
of these solutions have the disadvantage that they are platform-dependent.
-Christian
|