PAL.Loop := True; {## Wait for midnight } PAL.WaitForTime('23:59:59'); {## Scan our promos directory } DIR['c:\promos\'].Rescan; {## Take a breather } PAL.WaitForTime('+00:00:30'); {## Scan our main music directory } {## Include all subdirectories } SUBDIR['c:\music\'].Rescan;
var Song : TSongInfo; var P : TPlayer; PAL.Loop := True; PAL.WaitForTime('+00:05:00'); P := SoundFX; if P <> nil then begin Song := CAT['Sound FX (All)'].ChooseSong(smRandom,NoRules); if Song <> nil then begin P.QueueSong(Song); // P.Play; end; end;
var Song : TSongInfo; var P : TPlayer; var i : integer; PAL.Loop := True; i := ActivePlayer.GetVolume; PAL.WaitForTime('+00:05:00'); ActivePlayer.Volume := i - 40; ActivePlayer.Volume := i - 80; ActivePlayer.Volume := i - 120; ActivePlayer.Volume := i - 160; P := SoundFX; if P <> nil then begin Song := CAT['Sound FX (All)'].ChooseSong(smRandom,NoRules); if Song <> nil then begin PAL.WaitForTime('+00:00:10'); ActivePlayer.Volume := i - 160; ActivePlayer.Volume := i - 120; ActivePlayer.Volume := i - 80; ActivePlayer.Volume := i - 40; ActivePlayer.Volume := i; P.QueueSong(Song); P.Play; end; end;
var Song : TSongInfo; var P : TPlayer; var i : integer; i := ActivePlayer.GetVolume; ActivePlayer.Volume := 227; // приглушаем уровень громкости играющего трека ActivePlayer.Volume := 199; P := Aux1; // через что играть if P <> nil then begin Song := Cat['radio-jingle'].ChooseSong(1,NoRules); if Song <> nil then begin Aux1.QueueSong(Song); Aux1.Play; End; End; PAL.WaitForTime('+00:00:05'); // время ожидания к возрату увеличения громкости ActivePlayer.Volume := 227; ActivePlayer.Volume := 255;