|
From: Markus L. <Mar...@gm...> - 2008-02-26 16:03:16
|
Hi,
some short comments to the dj mode. As Johannes wrote we would like to
implement a general approach (not only gapless playing). We want let the
user define how two subsequent songs should be played by setting a
property (overlap_time?).
This property defines how many seconds the two songs should overlap.
Thus you need 0 seconds. But a overlap time above 0 is also reasonable.
As soon as the property is set, the (pre-)loading behavior has to
change. Currently the CoreController commands to load a song
("loadEntry()") as soon as he wants to play it. If the overlap_time is
set, the next entry has to be preloaded as soon as the currently played
entry has been loaded completely.
Furthermore the CoreController has to check, whether the current entry
has alreay reached the position (= end - overlap_time) from which the
second song has to be started. One has to set up a method which regulary
checks this condition using the Scheduler class.
> It's been a while since I had some free time, but today I started
> going
> through the code to figure out how to implement DJ Mode.
>
> First of all, the code is so nicely organized and documented -- it was
> a
> real pleasure exploring and studying this code (it's my first time
> with
> ActionScript!). Well done.
Thanks!
>
> I realized that I should hook to the callback from ObjectLoader -
> loadFromUrlFinished to know when to start preloading the next track. I
> tracked the current callback implementation and all it does is track
> from
> what I could tell. The question is - how do I add this new
> functionality
> (preloading) the next track into this function properly?
> *
> *My Question:*
> *In CoreController:
>
> ...
>
> And, anyways, is the right place to put the trigger for preloading the
> next
> track in CoreController.loadOfPleFinished?
Yes. I would put changes inside this function as well.
If you have running code, send it to me by email
(Mar...@gm...) and i will put it into SVN.
>
> Regarding the sample sets, I am trying to play sets by other dj's.
> They are
> copyrighted but do you think this would count for fair use? If so, I
> can
> send them or upload them...
I would suggest the same as Johannes. Just send us the last 20 seconds
of the first and the last 20 seconds of the second song. This shouldn't
be a problem and would help us with the test.
Markus
P.S.: I'm have no access to my computer till sunday. Thus i won't react
on further questions before next monday.
|