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 »

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 »

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 »

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 »

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
Talkies for all dialog 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 »

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 »

It doesn't require OpenAL on your machine? :)
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Microphone Support for LÖVE!

Post 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. :)
User avatar
soulaymenc
Prole
Posts: 36
Joined: Thu Jul 11, 2013 2:03 pm
Contact:

Re: Microphone Support for LÖVE!

Post by soulaymenc »

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 »

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: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Microphone Support for LÖVE!

Post 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?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 52 guests