alnitak / flutter_soloud

Flutter low-level audio plugin using SoLoud C++ library and FFI
MIT License
185 stars 16 forks source link

feat: schedule play #99

Closed lukepighetti closed 1 week ago

lukepighetti commented 1 month ago

I noticed we have scheduleStop and scheduleStart, but I'm having a hard time figuring out how to schedule a play.

The reason for this is to create a metronome that does not have any drift. I have not found an audio package that can handle this use case.

alnitak commented 1 month ago

Hi @lukepighetti,

I think this is somehow related to #78. The summary of that issue is related to the latency caused by the audio buffer size. Actually is not yet possible to change the buffer size within the current APIs, but only by changing its default value in a .cpp file. Hope to add this feature soon, just after the web platform will be supported!

alnitak commented 1 week ago

With PR #105 I think this can be closed. In the upcoming #110, there is also a metronome example that can be used within the current main branch.

@lukepighetti, feel free to reopen if it doesn't fit your expectations.