It is a media player, and there are short pauses in some areas, such as to wait for the player process to come back from executing a command before executing another one.
The player itself is a separate process controlled by this one using shared memory.
The sleep is in a procedure which loops around for a set period (100ms in this case) with a sleep(5) and a MainForm.Update so VU meters continue moving.
From: delphi-bounces@list... [mailto:delphi-bounces@list...] On Behalf Of Pieter De Wit
Sent: Monday, 14 May 2012 9:47 p.m.
To: NZ Borland Developers Group - Delphi List; 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Hang during Sleep