Het probleem is dat hij op zondag een andere playlist moet spelen maar hij vertikt het gaat steeds gewoon de Queue.Duration afspelen op zondag.
Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExecution;
var QueueTime : Integer = (60*60*500);
while DayOfWeek(Now) = Saturday and ((Now >= T['00:05:15']) and (Now <= T['00:05:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
Queue.Clear;
PAL.LockExecution;
end;
while DayOfWeek(Now) = Sunday and ((Now >= T['xx:01:15']) and (Now <= T['xx:01:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:01:45']);
PAL.WaitForTime(T['xx:03:00']);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['jingles zondag'].QueueBottom(smRandom, NoRules);
Cat['jingles zondag'].QueueBottom(smRandom, NoRules);
Cat['oldies'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['oud nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['jingles zondag'].QueueBottom(smRandom, NoRules);
Cat['oldies'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['oud nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['jingles zondag'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['jingles zondag'].QueueBottom(smRandom, NoRules);
Cat['oldies'].QueueBottom(smRandom, NoRules);
Cat['oud nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
PAL.LockExecution;
end;
while DayOfWeek(Now) = Monday and ((Now >= T['00:05:15']) and (Now <= T['00:05:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
PAL.LockExecution;
end;
while DayOfWeek(Now) = Tuesday and ((Now >= T['00:05:15']) and (Now <= T['00:05:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
PAL.LockExecution;
end;
while DayOfWeek(Now) = Wednesday and ((Now >= T['00:05:15']) and (Now <= T['00:05:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
PAL.LockExecution;
end;
while DayOfWeek(Now) = Thursday and ((Now >= T['00:05:15']) and (Now <= T['00:05:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
PAL.LockExecution;
end;
while DayOfWeek(Now) = Friday and ((Now >= T['00:05:15']) and (Now <= T['00:05:25'])) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
PAL.LockExecution;
end;
While Queue.Duration < QueueTime Do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:03:00']);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['oud nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['oldies'].QueueBottom(smRandom, NoRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['oud nl muziek'].QueueBottom(smRandom, NoRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['oud nl muziek'].QueueBottom(smRandom, NoRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['oud nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['oldies'].QueueBottom(smRandom, NoRules);
Cat['01jingles'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smLRP, EnforceRules);
Cat['oud nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
Cat['nieuw nl muziek'].QueueBottom(smRandom, NoRules);
PAL.LockExecution;
end;
PAL.UnLockExecution;Zie kan me helpen wat ik verkeert doe
thx
marcel