07-21-2023, 01:58 AM
(This post was last modified: 07-21-2023, 02:00 AM by TerryRitchie.)
(07-21-2023, 01:45 AM)random1 Wrote: Hi all
Is there a simple way to create a playlist for _SndPlay?
R1.
Load your sound file handles into an array. Loop the through the array and play each song one at a time. When the current file stops playing ( _SNDPLAYING ) increment the array's index number to the next sound handle in the array and play that sound. When the index value exceeds the array size ( UBOUND ) then all files have been played.
Here is the lesson in my tutorial on using sound files: https://www.qb64tutorial.com/lesson12