Closed saarikivit closed 8 hours ago
Oh and btw. I tried to just delegate only the rendering also to a "compute" method. That resulted in a buzzing sound somehow.
thanks for the issue but i'm not sure!
let me know if you figure it out!
I figured it out with a weird method: Using a real background service.
With them I can render the audio in a background thread. The necessary Channel is there.
I'll go ahead and close this.
Hey! I'm very satisfied with this plugin. And I contributed to the melty synth :)
I'm trying to delegate the rendering to an isolate. And that is probably ok. But I'm not able to have Flutter PCM Sound in the isolate. It requires "WidgetsFlutterBinding.ensureInitialized();" which can not be called within an isolate.
My end goal is to make a background player that works with this and melty synth you created. I want to put my phone in the pocket and still be able to listen to the synth. I would also prefer the rendering to happen off main thread.
The following code does not work in an isolate I spawned. It lacks binding.
It is likely due to the MethodChannel which is unavailable. Would you have any ideas how I could remedy this?
Also any ideas how to implement the audio to be playable in the background is largely helpful. Is that even possible with this?
Thanks a lot for your help!
Best, Tero.