Microphone Input

Issue #1 resolved
Former user created an issue

Be able to record mic input to SoundData and also be able to probe live information from mic input (dB and frequency in mono or stereo).

Comments (29)

  1. Bill Meltsner
    • changed status to open

    This is a planned feature. In the interest of expedience, we'll be releasing 0.7.0 without it, but this should be in by 0.8.0, once we can figure out the innumerable quirks of using OpenAL capture.

  2. Eliter Scripts

    Lucien Greathouse how in God's name do you use this? I want to transfer the microphone data to a server. I want to make my own team speak program! I want to figure out enet, then run the sound data to a server. How do I do that?

  3. Alex Szpakowski

    Also, most/all VOIP services use a voice compression codec (like Speex) to minimize the bandwidth used when transferring the microphone data over the internet. That kind of thing is outside the scope of a microphone API like this, but it's possible to implement support for one of those codecs yourself.

  4. David Serrano

    With code that relies on ffi recently being included in our code base. Can we maybe think about including love-microphone as our mic module until someone can code a proper one that isn't dependent on ffi?

  5. Alex Szpakowski

    LÖVE doesn't (and doesn't have any plans to, for now) have any function or method that relies on the presence of LuaJIT's FFI. The new ImageData and SoundData code is completely optional (won't cause problems if LuaJIT isn't used) – it just replaces the regular methods in cases where it's possible and there will be a performance gain to do so.

  6. Lucien Greathouse

    One of these days I'll get around to porting my audio API changes over to C++ and send them up for a pull request, but there need to be some other relatively major changes too (Lua-side streaming interface, more straightforward way to copy data around *Data objects) before it would be too terribly useful.

  7. David Serrano

    I don't think it is as simple as "just adding it" from the conversation in #love I kinda gotten the impression that adding this would require work to be done to all of the sound code.

  8. Mi 28

    A lot of work is not actually that hard but efforts are spread too thin. I'm working on patching audio now and there's good chance I'll get around to implementing microphone input.

  9. Log in to comment