Microphone Support for LÖVE!

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
LPGhatguy
Prole
Posts: 14
Joined: Thu Aug 09, 2012 12:57 am
Location: Montana, United States
Contact:

Microphone Support for LÖVE!

Post by LPGhatguy » Tue Dec 16, 2014 8:31 pm

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!

User avatar
nuno
Party member
Posts: 137
Joined: Wed Dec 11, 2013 12:00 pm
Location: Portugal
Contact:

Re: Microphone Support for LÖVE!

Post by nuno » Wed Dec 17, 2014 7:51 am

cool! gonna try it today :D

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

User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Microphone Support for LÖVE!

Post by T-Bone » Wed Dec 17, 2014 11:13 am

Wait, is this pure Lua or a C++-thing that has to be compiled into Löve?

User avatar
drunken_thor
Citizen
Posts: 75
Joined: Wed Oct 01, 2014 12:14 am
Location: Toronto, Canada
Contact:

Re: Microphone Support for LÖVE!

Post by drunken_thor » Wed Dec 17, 2014 4:57 pm

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!
Light_world.lua for all your lighting needs
Github
twitter

User avatar
LPGhatguy
Prole
Posts: 14
Joined: Thu Aug 09, 2012 12:57 am
Location: Montana, United States
Contact:

Re: Microphone Support for LÖVE!

Post by LPGhatguy » Fri Dec 19, 2014 1:31 am

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.

szensk
Party member
Posts: 155
Joined: Sat Jan 19, 2013 3:57 am

Re: Microphone Support for LÖVE!

Post by szensk » Fri Dec 19, 2014 5:23 am

It doesn't require OpenAL on your machine? :)

User avatar
slime
Solid Snayke
Posts: 2888
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Microphone Support for LÖVE!

Post by slime » Fri Dec 19, 2014 6:22 am

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. :)

User avatar
soulaymenc
Prole
Posts: 34
Joined: Thu Jul 11, 2013 2:03 pm
Contact:

Re: Microphone Support for LÖVE!

Post by soulaymenc » Fri Dec 19, 2014 2:02 pm

Amazing! Can't wait to see what I can make with this :D
This world is so strange.

szensk
Party member
Posts: 155
Joined: Sat Jan 19, 2013 3:57 am

Re: Microphone Support for LÖVE!

Post by szensk » Fri Dec 19, 2014 7:09 pm

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!

User avatar
Jasoco
Inner party member
Posts: 3651
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Microphone Support for LÖVE!

Post by Jasoco » Fri Dec 19, 2014 10:25 pm

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests