Can playAdvertisement method can be called at any time like a playFolderTrack method, not just when there is music playing? #163
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
(please use the discussion area for asking questions) This is a question that is best asked towards those who create the actual chip. I don't think calling playAdvertisment() when an advertisement is still playing was meant to be supported. Make sure your not doing that, Calling playFolderTrack will reset all the prev/next track to the referenced folder and track you provide. The chip doesn't remember that you interrupted a music track, you would have to track and manage that. The sort of things you are doing would probably best be done with two boards, one for ambient sound and one for your event sounds. NOTE: It is better to wait for the notification that the specific song has played than to wait using delay(). You really should avoid calling delay() for any length of time greater than 100ms. See the examples on how they handle a delay longer than that, by looping and calling into the mp3 object. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your patience in replying, and in that case, I will find other ways to replace this request😄 |
Beta Was this translation helpful? Give feedback.
(please use the discussion area for asking questions)
This is a question that is best asked towards those who create the actual chip.
I don't think calling playAdvertisment() when an advertisement is still playing was meant to be supported. Make sure your not doing that,
Calling playFolderTrack will reset all the prev/next track to the referenced folder and track you provide. The chip doesn't remember that you interrupted a music track, you would have to track and manage that.
The sort of things you are doing would probably best be done with two boards, one for ambient sound and one for your event sounds.
NOTE: It is better to wait for the notification that the specific song has played th…