Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Microphone plugin still not working from the box — Gideros Forum

Microphone plugin still not working from the box

YanYan Member
1) added Microphone plugin

2) local mic = Microphone.new(nil, 44100, 2, 16, 1)

3)
main.lua:10: attempt to index global 'Microphone' (a nil value)
stack traceback:
	main.lua:10: in main chunk
or if I try require 'Microphone'
main.lua:9: module 'Microphone' not found:
	no field package.preload['Microphone']
	no file './Microphone.lua'
	no file './Microphone/init.lua'
	no file './_LuaPlugins_/Microphone.lua'
	no file './_LuaPlugins_/Microphone/init.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:9: in main chunk
P.S. I did already exported player with plugin included to my Device, same above.

Gideros: 2019.2.1
vk.com/yan_alex

Comments

  • hgy29hgy29 Maintainer
    it should be
    require "microphone"
    (lower case).
  • YanYan Member
    hgy29 said:

    it should be

    require "microphone"
    (lower case).
    Damn, I am jerk. Sorry (((

    Bwt, If I included plugin in filetree, why do I should import this manually ?
    vk.com/yan_alex
  • hgy29hgy29 Maintainer
    because loading plugins could fail (for exemple if you try to use a plugin not supported on some platform), and you may want to deal with it at runtime thanks to pcall(). So gideros doesn't automatically 'require' plugins since it wouldn't be able to interpret failures.
  • YanYan Member
    edited March 2019
    hgy29 said:

    because loading plugins could fail (for exemple if you try to use a plugin not supported on some platform), and you may want to deal with it at runtime thanks to pcall(). So gideros doesn't automatically 'require' plugins since it wouldn't be able to interpret failures.

    Ok, thank you! Already got working demo.

    One another question, is it possible to record audio from sound channel directly, etc any numbers of channels ? I need it for combining sounds and render? If not, to whom I must pray to implement this in gideros? ????

    The main target is merge two sounds in one sound file, like render all streams in one file.

    vk.com/yan_alex
Sign In or Register to comment.