Sound with v-rep

Typically: "How do I... ", "How can I... " questions
Post Reply
Eric
Posts: 186
Joined: 11 Feb 2013, 16:39

Sound with v-rep

Post by Eric »

Hello!

I would like to have sound associated to the selection of buttons of my UI. From now on I simply print the beep character in a lua script: print(string.char(7) )
Is there an other simple way to play a sound?

Eric

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Sound with v-rep

Post by coppelia »

Hi Eric,

There are two ways I can think of:

1) Maybe there is a Lua extension library that allows doing that?

2) You could write a plugin that does this. Have a look at C/C++ sound libraries. Then, from your Lua script, you could call a custom Lua function, that will trigger a sound in the plugin

Cheers

Post Reply