我读过Gervill jar将用于此。其他构建块是javax声音的,它作为aar文件出现在我的项目中(因为它不存在于修整的Android的Java包中)。project(path: ':gervilljar') // This is folder name at project root folder level containing gervill.jarGervill.jar不够好,不能避免错误。因此,我从com.sun.media.声.*中挑选了几个其他类,并编译成新的jar。
(重新编辑时:是否普通的getReceiver()方法实际上就是为了达到这个目的,就像我在上面的“第一次尝试”中所描述的那样,并且仅仅是被SoftSynthesizer的"Gervill“简化了一下?inhereplease [1] = device.getReceiver ();
// will be distinct as objects, but with Gervill