In my app I generate .wav files from MIDI files and then play them in the MediaPlayer. But the conversion takes quite a long time and I would like to play the audio while it is being generated. Subsequent changing of the wave file does not seem to work in the MediaPlayer object and audio streams are not accepted. I found
this solution for a similar problem while searching .
Could this be modified so that I can use it with a local audio stream? I need an object with the methods: "Play", "Stop" and Get / Set Position, which can play a file, which can still be appended at runtime.
I would be very grateful for any tips.