I am returning to finish my app I started a year ago. I just reinstalled Gideros but my app requires the microphone. I installed the microphone.dll file to my plugins folder. Whenever I run my app or the example microphone app I get the following error:
main.lua:1: module 'microphone' not found:
no field package.preload['microphone']
no file '.\microphone.lua'
no file 'C:\Program Files (x86)\Gideros\lua\microphone.lua'
no file 'C:\Program Files (x86)\Gideros\lua\microphone\init.lua'
no file 'C:\Program Files (x86)\Gideros\microphone.lua'
no file 'C:\Program Files (x86)\Gideros\microphone\init.lua'
no file '.\microphone.dll'
no file 'C:\Program Files (x86)\Gideros\microphone.dll'
no file 'C:\Program Files (x86)\Gideros\loadall.dll'
stack traceback:
main.lua:1: in main chunk
Am I missing something for the microphone installation? Did something change in the last year or so?
Comments
I just noticed that it is not added to build scripts to bundle with release
I tried to build it myself and it seems to be working great.
Will add to build scripts, but in the mean time, attaching my working .dll
Android
Copy bin/Android/* to libs directory.
Copy source/com/* to your project.
Add System.loadLibrary("microphone"); to your main Activity.
Add "com.giderosmobile.android.plugins.microphone.GMicrophone" to externalClasses array.
Add android.permission.RECORD_AUDIO permission.
However, I don't know where to make those changes or if I even should now that I am going through the Gideros Android Player and not Eclipse.
The error message is similar to the previous one:
main.lua:3: module 'microphone' not found:
no field package.preload['microphone']
no file './microphone.lua'
no file '/usr/local/share/lua/5.1/microphone.lua'
no file '/usr/local/share/lua/5.1/microphone/init.lua'
no file '/usr/local/lib/lua/5.1/microphone.lua'
no file '/usr/local/lib/lua/5.1/microphone/init.lua'
no file './microphone.so'
no file '/usr/local/lib/lua/5.1/microphone.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
main.lua:3: in main chunk
I get I tried using both dll (from gideros install folder and from @ar2rsawseen post) in gideros/Plugins.
Should I "require" the plugin in some way?
I tried just creating a new Microphone object
thank you
I don't know if you can use a download manager, firefox couldn't retry nor resume this download ]
I can confirm that Microphone plugin on windows7 and gideros 2016.04 is working,
@ar2sawseen or @john26 it seems that there is a double mistype here in event properties: http://docs.giderosmobile.com/reference/plugin/Microphone/Event.DATA_AVAILABLE#Event.DATA_AVAILABLE
xxxAmplitute should be xxxAmplitude
thank you
I followed all the instructions for installation, the only uncertainty I have is about the "external class array" since in release 2016.04 is a bit different from before.
Does this sound correct to you?
Microphone doesn't seem to work anyway on android (even if there's no crash).
On windows player instead it works fine.
Is there something I could try before opening a github issue?
Thank you very much
Are they in the right place, tit you load them via System.load?
libmicrophone.so files are in their respective folders under libs/ (copied from latest allplugins folder in gideros installation folder)
this is my system.loadLibrary portion, do you see something wrong here?
P.s. the crash happens only if I remove the assets/assets directory to make a gideros player with mic support.
If i compile the whole app it runs correctly but mic is not working
I got it to work (after a long day trying to figure it out ~X( ) by copying
and