Replies: 1 comment 5 replies
-
I came to the conclusion that I needed 6 * 20 audio players, each 20 are each in their hash table of audio players, six asset directories, each of which has 163 identical one-second WAV files. Only then I do not have a memory leak and in a second I can press the same key at least five times and there will not be a single sound skip. Yes, the temporary directory has grown to 360 MB, but there is no memory leak (140-180 MB is constantly and Not growing, it's great!). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple exercise app with 4 different sound effects. One is a countdown, another is the beginning of an exercise, another is the end of the exercise, and the last one represents a successful finish to a workout. There's no instance in which any of these would be played at the same time.
Is it better to use 4 different AudioPlayers, one for each sound? Or should I use one AudioPlayer to change the AssetSource each time?
Beta Was this translation helpful? Give feedback.
All reactions