Page 1 of 7

Microphone Support for LÖVE!

Posted: Tue Dec 16, 2014 8:31 pm
by LPGhatguy
Hiyo!

I wrote a nifty little library that adds simple microphone support for LÖVE! It's called love-microphone and you can get it here:
https://github.com/LPGhatguy/love-microphone

Right now, it creates a SoundData and calls a callback function (either love.microphonedata or a custom one for each microphone) every time that data is ready to be processed.

Let me know what you think!

Re: Microphone Support for LÖVE!

Posted: Wed Dec 17, 2014 7:51 am
by nuno
cool! gonna try it today :D

maybe we will see this included in Löve in the future?

Re: Microphone Support for LÖVE!

Posted: Wed Dec 17, 2014 11:13 am
by T-Bone
Wait, is this pure Lua or a C++-thing that has to be compiled into Löve?

Re: Microphone Support for LÖVE!

Posted: Wed Dec 17, 2014 4:57 pm
by drunken_thor
Kudos this looks awesome, also as a side note, your openal interface is a really good example of FFI in lua. I might have to play around with later as well.

Thanks!

Re: Microphone Support for LÖVE!

Posted: Fri Dec 19, 2014 1:31 am
by LPGhatguy
T-Bone wrote:Wait, is this pure Lua or a C++-thing that has to be compiled into Löve?
This is pure Lua. Does not require any extra dependencies, compilation, or external tools. Just LÖVE 0.9.0+ and LuaJIT, which is default.

Re: Microphone Support for LÖVE!

Posted: Fri Dec 19, 2014 5:23 am
by szensk
It doesn't require OpenAL on your machine? :)

Re: Microphone Support for LÖVE!

Posted: Fri Dec 19, 2014 6:22 am
by slime
OpenAL is already required by LÖVE, so it's still accurate to say that it doesn't require anything aside from LÖVE and LuaJIT. :)

Re: Microphone Support for LÖVE!

Posted: Fri Dec 19, 2014 2:02 pm
by soulaymenc
Amazing! Can't wait to see what I can make with this :D

Re: Microphone Support for LÖVE!

Posted: Fri Dec 19, 2014 7:09 pm
by szensk
slime wrote:OpenAL is already required by LÖVE, so it's still accurate to say that it doesn't require anything aside from LÖVE and LuaJIT. :)
Perfect!

Re: Microphone Support for LÖVE!

Posted: Fri Dec 19, 2014 10:25 pm
by Jasoco
So what exactly can you do with microphone support in Löve? It's not like you can process voice commands in real-time.

Maybe emulate the Famicom to kill rabbit enemies in a Zelda game or stuff the DS, 3DS and Wii U do in some games?