[SCRiPT] determining various formats inside "dir"
Hello friends, and just another time I have some ideas to do something using CONSOLE-ONLY-environment. The scenario: As said, on console-ONLY, I want to play all the audio -===========- files in dir "/audio" The formats: The formats are: .WAV .MP3 .S3M .MOD .XM, which can be -==========- easily played using mpg123, modplay and so forth. The script: The script shall read out file names in "dir", one each -=========- and then play THAT ONE file like below for .MP3s and now the second problem: As soon as I insert an AUDiO CD into the CDROM, it shall detect that, stop playing the list (of course after finishing that very tune) and then start playing the inserted autio cd. How to do this? Note like: copy all filenames of dir "/audio" into file "playlist.tmp" (1) read out ONE file name each from "playlist.tmp" check for file extension to determine format play it, for instance mp3blaster -f file.mp3 for .mp3 files check for "cd inserted???" if yes, play cd not inserted then go and read next one (1) the structure should read ok. But I am no good at bash programming, who could help? Lawson? You there? hehe, big greetings to all you here on this cool list! Olli -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<
participants (1)
-
Oliver Ob