how to, playlist - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2) +--- Thread: how to, playlist (/showthread.php?tid=1854) |
how to, playlist - random1 - 07-21-2023 Hi all Is there a simple way to create a playlist for _SndPlay? R1. RE: how to, playlist - TerryRitchie - 07-21-2023 (07-21-2023, 01:45 AM)random1 Wrote: Hi all 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 RE: how to, playlist - SMcNeill - 07-21-2023 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. RE: how to, playlist - random1 - 07-29-2023 Sorry for the delayed response but was away. Anyway thanks, just what I needed. R1 |