var P : TPlayer; var Song : TSongInfo; var strFile, strPath, strJingle : String; strPath := 'E:\CLOCK\'; //папка с отбивкой strJingle := 'C:\CLOCK\start_hour.mp3'; //Путь и название джингла после отбивки часов PAL.Loop := True; PAL.WaitForTime('XX:59:45'); //запускаемся в конце каждого часа P := SoundFX; strFile := strPath + FormatDateTime('hh', now+1/24) + '-00.mp3'; Queue.AddFile(strFile, ipTop); Song := Queue.NextInQueue; P.QueueSong(Song); P.Play;
if ((now >= T['0:00:00']) and (now <= T['06:00:00']) then begin играть джингл end;
<?php function antara($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $live = file_get_contents("http://85.28.203.242:8000/status.xsl?mount=/kamchatka_live"); $nonstop = file_get_contents("http://91.195.211.165:8000/status.xsl?mount=/nonstop"); $lives = antara($live, "<td>Current Listeners:</td><td class=\"streamdata\">","</td></tr>")+ antara($nonstop, "<td>Current Listeners:</td><td class=\"streamdata\">","</td></tr>"); ?> <?php echo "Сейчас слушают : ".$lives."<br>"; ?>
var P : TPlayer; var Song : TSongInfo; var strFile, strPath, strJingle : String; var i : integer; PAL.Loop := True; i := ActivePlayer.GetVolume; P := SoundFX; strPath := 'E:\CLOCK\'; //путь к папке с отбивкой PAL.WaitForTime('XX:59:15'); //запускаемся в конце каждого часа strFile := strPath + FormatDateTime('hh', now+1/24) + '-00.mp3'; Queue.AddFile(strFile, ipTop); Song := Queue.NextInQueue; P.QueueSong(Song); ActivePlayer.Volume := i - 40; ActivePlayer.Volume := i - 80; ActivePlayer.Volume := i - 120; ActivePlayer.Volume := i - 160; P.Play; PAL.WaitForTime('+00:00:03'); ActivePlayer.Volume := i - 160; ActivePlayer.Volume := i - 120; ActivePlayer.Volume := i - 80; ActivePlayer.Volume := i - 40; ActivePlayer.Volume := i;
ActivePlayer.Volume := i - 40; ActivePlayer.Volume := i - 80; ActivePlayer.Volume := i - 120; ActivePlayer.Volume := i - 160; ActivePlayer.Volume := i - 200; P.Play; PAL.WaitForTime('+00:00:03'); ActivePlayer.Volume := i - 200; ActivePlayer.Volume := i - 160; ActivePlayer.Volume := i - 120; ActivePlayer.Volume := i - 80; ActivePlayer.Volume := i - 40; ActivePlayer.Volume := i;