Added an audioplayer preload call in the initialization, which hopefully speeds things up. Also increased init-time to 10 seconds.

Refer to 
This commit is contained in:
mark 2006-11-30 10:34:55 +00:00
parent 69578735e9
commit ec217a1a71
1 changed files with 4 additions and 1 deletions
campcaster/src/products/scheduler/src

View File

@ -41,6 +41,7 @@
#include <iostream>
#include "LiveSupport/Core/TimeConversion.h"
#include "LiveSupport/Core/SessionId.h"
@ -80,7 +81,7 @@ PlaylistEvent :: PlaylistEvent(
this->scheduleEntry = scheduleEntry;
// this init time is a wild guess, say 5 seconds should be enough
initTime.reset(new posix_time::time_duration(0, 0, 5, 0));
initTime.reset(new posix_time::time_duration(0, 0, 10, 0));
state = created;
}
@ -109,6 +110,8 @@ std::cerr << "PlaylistEvent :: initialize acquired playlist\n";
errorMessage += e.what();
throw std::logic_error(errorMessage);
}
audioPlayer->preload(*playlist->getUri());
state = initialized;
}