@@ -79,7 +79,7 @@ sub load($$) {
# Wait for the file to load
my $count = 0;
while (!loaded($name)) {
- sleep($WAIT_DELAY);
+ Time::HiRes::sleep($WAIT_DELAY);
$count++;
if ($count > $MAX_WAIT) {
die('Unable to open file: ' . $name . "\n");
@@ -68,7 +68,7 @@ if ($ENV{'DEBUG'}) {
# Load all our audio files
foreach my $file (keys(%FILES)) {
- Audio::addLoad($file, $FILES{$file});
+ Audio::load($file, $FILES{$file});
}
# Sockets