Can not play midi file on android
liuyubupt opened this issue · 1 comments
liuyubupt commented
`
private static File sound;
private static Sequence seq;
private static Sequencer midi;
sound = new File(pathname);
seq = MidiSystem.getSequence(sound);
midi= MidiSystem.getSequencer();
midi.open();
midi.setSequence(seq);
if(!midi.isRunning()) {
midi.start();
Log.v("start", "start");
}
`
When I run the above code, there is no sound.
But there's sound on the window.
saschko04 commented
Any solution on this? I have a similar problem.