Note that there are some explanatory texts on larger screens.

plurals
  1. USLEM
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COOk, tried this one too. I guess the result is a bit better, but.... Used your function with my Sound variable instead of default, while not assigning any sound to notification itself. The second sound begins playing milliseconds after the first one and mixes together with the first. So I could hear both of them playing pretty much at the same time. I guess a user with musical hearing may be able to hear them both play, but in my ideal world I'd rather them play sequentially, not simultaneously.
      singulars
    2. COTried it just now. No candy. You are suggesting to add FLAG_UPDATE_CURRENT, which won't do much when we use a random id, since system will treat each notification as unique one (unless two identical random numbers are generated, in which case this would be helpful). The sound from second notification still overrides the first one. A 5 second pause between launching notifications does do the trick as I described in update to the question. But I'm not very happy with that solution...
      singulars
    3. COThanks, zapl. I'll look into that as a possibility if I can't get the notifications to cooperate. That said, I have seen applications that pop-up multiple notifications in rapid succession and I hear the sounds following one-another in rapid sequence. In that case the same sound twice in a row. Who knows, maybe they are indeed using SoundPool for that...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload