Add Android audio input support to JSynAndroidAudioDeviceManager · Issue #20 · processing/processing-sound (original) (raw)
Hey, this library looks like great work and I'm super excited to see that it is compatible with Android!
I have tried all of the examples in Android mode, and all of them work great with the exception of the AudioInput example. When running the sketch on my device, I get the following stack trace:
java.lang.RuntimeException: Audio Input not configured in start() method.
at com.jsyn.engine.SynthesisEngine.getInputBuffer(Unknown Source:13)
at com.jsyn.unitgen.ChannelIn.generate(Unknown Source:11)
at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source:44)
at com.jsyn.ports.PortBlockPart.pullData(Unknown Source:19)
at com.jsyn.ports.UnitInputPort.pullData(Unknown Source:11)
at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source:40)
at com.jsyn.ports.PortBlockPart.pullData(Unknown Source:19)
at com.jsyn.ports.UnitInputPort.pullData(Unknown Source:11)
at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source:40)
at com.jsyn.ports.PortBlockPart.pullData(Unknown Source:19)
at com.jsyn.ports.UnitInputPort.pullData(Unknown Source:11)
at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source:40)
at com.jsyn.ports.PortBlockPart.pullData(Unknown Source:19)
at com.jsyn.ports.UnitInputPort.pullData(Unknown Source:11)
at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source:40)
at com.jsyn.engine.SynthesisEngine.synthesizeBuffer(Unknown Source:32)
at com.jsyn.engine.SynthesisEngine.generateNextBuffer(Unknown Source:27)
at com.jsyn.engine.SynthesisEngine$EngineThread.run(Unknown Source:194)
I was wondering if this was an Android permissions issue, so I modified the example to request the RECORD_AUDIO
permission, but I still got the same error message.
I don't know how much you intend to support Android mode, but the degree to which things do work is already quite impressive and a significant improvement over the previous lack of sound solutions for Android. In other words, it would be nice for audio input to work on Android, but if Java mode is more of a priority then that is understandable.
@kevinstadler I am willing to look into this issue myself, but I was wondering if you had any insight into what the issue is because you obviously have more experience with this project.