Closed lukepighetti closed 2 months ago
Hi @lukepighetti, thanks for your feedback!
Some brief examples are expected soon. We will open an issue to ask which one could be more relevant for the devs. Meanwhile, I would refer you to my reply of #99 regarding this issue.
do you have any immediate recommendations for how to get the best metronome like performance out of flutter_soloud?
do you have any immediate recommendations for how to get the best metronome like performance out of flutter_soloud?
IIRC a good choice is to set a buffer of 512 (instead of the default 2048) here.
Of course, there is some troubles because you need to clone this repo locally and point it to your app's pubspec.yaml
after modifying player.cpp
.
I also think you could try using the SoLoud.play([your-short-metronome-sound])
inside a Timer.periodic()
.
Let me know!
I tried to make a metronome using a buffer of 512 and since the web platform is almost ready, I made the example available here.
Soon there will be there will be the option to choose the buffer size while initializing the player.
Some things I noticed using this on iOS simulator using the default buffer size
I have yet to find a flutter package that can keep time accurately enough for use as a metronome. I think we should add such an example to flutter_soloud to both ensure the package maintains best-in-industry playback scheduling accuracy, but to also show people what techniques are needed to play with accuracy