how to, playlist
#2
(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
Software and cathedrals are much the same — first we build them, then we pray.
QB64 Tutorial
Reply


Messages In This Thread
how to, playlist - by random1 - 07-21-2023, 01:45 AM
RE: how to, playlist - by TerryRitchie - 07-21-2023, 01:58 AM
RE: how to, playlist - by SMcNeill - 07-21-2023, 02:26 AM
RE: how to, playlist - by random1 - 07-29-2023, 01:38 AM



Users browsing this thread: 2 Guest(s)