how to, playlist
#1
Hi all
Is there a simple way to create a playlist for _SndPlay? 
R1.
Reply
#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
#3
https://staging.qb64phoenix.com/showthread.php?tid=68 -- If you need to get all the music files from a directory to create an auto-playlist array, just use the routines there.
Reply
#4
Sorry for the delayed response but was away.  Anyway thanks, just what I needed.

R1
Reply




Users browsing this thread: 3 Guest(s)