Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply
#3
https://qb64phoenix.com/forum/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)