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!
Microphone Support for LÖVE!
Re: Microphone Support for LÖVE!
cool! gonna try it today 
maybe we will see this included in Löve in the future?

maybe we will see this included in Löve in the future?
Re: Microphone Support for LÖVE!
Wait, is this pure Lua or a C++-thing that has to be compiled into Löve?
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- drunken_thor
- Citizen
- Posts: 75
- Joined: Wed Oct 01, 2014 12:14 am
- Location: Toronto, Canada
- Contact:
Re: Microphone Support for LÖVE!
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!
Thanks!
- LPGhatguy
- Prole
- Posts: 14
- Joined: Thu Aug 09, 2012 12:57 am
- Location: Montana, United States
- Contact:
Re: Microphone Support for 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.T-Bone wrote:Wait, is this pure Lua or a C++-thing that has to be compiled into Löve?
- slime
- Solid Snayke
- Posts: 3178
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Microphone Support for LÖVE!
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. 

- soulaymenc
- Prole
- Posts: 36
- Joined: Thu Jul 11, 2013 2:03 pm
- Contact:
Re: Microphone Support for LÖVE!
Amazing! Can't wait to see what I can make with this 

This world is so strange.
Re: Microphone Support for LÖVE!
Perfect!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.
- Jasoco
- Inner party member
- Posts: 3728
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Microphone Support for LÖVE!
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?
Maybe emulate the Famicom to kill rabbit enemies in a Zelda game or stuff the DS, 3DS and Wii U do in some games?
Who is online
Users browsing this forum: No registered users and 0 guests