News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Pages (2): « First [1] 2 Next > Last »
Lua stand-alone audio library
Author Message
znarf
Junior Member
**


Posts: 34
Group: Registered
Joined: Jun 2007
Status: Offline
Reputation: 0
Post: #1
Lua stand-alone audio library

Hi,

while waiting for the much-anticipated murgaLua 0.7 release, I've done my best to close a gap in the Lua library module landscape. If you are interested in a free cross-platform stand-alone Lua audio library compatible to with murgaLua, have a look at proteaAudio.

Cheers,
Gerald

01-10-2009 11:34 PM
Find all posts by this user Quote this message in a reply
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #2
RE: Lua stand-alone audio library

I didn't want your hard work going unappreciated.
Good job.

Wish I new the first thing about doing something with an audio library.

01-16-2009 02:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #3
RE: Lua stand-alone audio library

That is VERY cool :-)

Apologies for my delay in releasing 0.7 :-(

01-16-2009 11:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jyf1987
Member
***


Posts: 58
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #4
RE: Lua stand-alone audio library

i dont know cpp programming,recently i am learning pure C programming,hope i can do a favor


Cheers
jyf
01-17-2009 12:02 AM
Find all posts by this user Quote this message in a reply
znarf
Junior Member
**


Posts: 34
Group: Registered
Joined: Jun 2007
Status: Offline
Reputation: 0
Post: #5
RE: Lua stand-alone audio library

Hi,

thank you for your encouraging words and a special thanks to jyf1987 for his testing and suggestions for improvements. I've uploaded a new proteaAudio version today which includes an example for dynamically generating sound samples in Lua. It's nice to work with a language that allows such things in a few lines of code...

01-21-2009 10:21 PM
Find all posts by this user Quote this message in a reply
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #6
RE: Lua stand-alone audio library

Hi!

I really like the idea of having a lua soundlib, even if I don't know yet what to do with itSmile
Just a little hint: it would be nice if you pack the zipfiles to unzip in their own directory.
so to cd .. before zipping. That way it's easier to unpack them without clobbering the current directory.
For the rest: keep up the good work!
JP

01-21-2009 11:26 PM
Find all posts by this user Quote this message in a reply
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #7
RE: Lua stand-alone audio library

Hmm, I can't get it to work with murgaLua 0.6.9.
It throws me this error:

> require'proAudioRt'
error loading module 'proAudioRt' from file './proAudioRt.so':
./proAudioRt.so: undefined symbol: luaL_register
stack traceback:
[C]: ?
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?

While it works nicely in plain lua5.1.
Hope this gets a workaround for the new 0.7 release Smile

JP

01-22-2009 03:45 AM
Find all posts by this user Quote this message in a reply
jyf1987
Member
***


Posts: 58
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #8
RE: Lua stand-alone audio library

it's quite useful to me,:]
but i still dont know how you generate the wav data in your example 2
recently i am using lua-gd and found it magicly
but after see your example 2,i found it more magicly!


Cheers
jyf
01-22-2009 01:41 PM
Find all posts by this user Quote this message in a reply
znarf
Junior Member
**


Posts: 34
Group: Registered
Joined: Jun 2007
Status: Offline
Reputation: 0
Post: #9
RE: Lua stand-alone audio library

jpjacobs Wrote:
It throws me this error:

> require'proAudioRt'
error loading module 'proAudioRt' from file './proAudioRt.so':
./proAudioRt.so: undefined symbol: luaL_register


Phew, I must admit I've tested murgaLua compatibility only under Windows, whereas I tested proteaAudio under Linux only with plain Lua.
Basically I see two possible explanations:
- the method luaL_register is not present in Linux murgaLua
- the shared object (generated in Ubuntu 7.10 32bit) module is not binary compatible with your distribution. I do not have much experience with generating compatible Linux binaries, I just know that this could be an issue, especially if the code is C++ internally.

I'll check and let you know! If everything fails, there is at least the source distribution...

@jyf1987: in order to understand what's going on when generating the sine sample, it's best to look at the generated wave data table visually. It's a great feature of murgaLua that it always allows you accessing FLTK's drawing functions easily...

01-22-2009 09:15 PM
Find all posts by this user Quote this message in a reply
jyf1987
Member
***


Posts: 58
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #10
RE: Lua stand-alone audio library

i think i need to learn some knowledges about sound,:]

BTW,


Cheers
jyf
01-23-2009 01:57 AM
Find all posts by this user Quote this message in a reply
Pages (2): « First [1] 2 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: