bianliu1013 / musikcube

Automatically exported from code.google.com/p/musikcube
Other
0 stars 0 forks source link

Integrate audioenginge in transportview #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I suggest we have some sort of musik::core::Coordinator singleton class
that coordinates the transporter and current playlist ("now playing"). This
coordinator class should have signals that we could hook in the
transporterview.

Original issue reported on code.google.com by onne...@gmail.com on 6 Apr 2008 at 6:24

GoogleCodeExporter commented 9 years ago
Not sure about the singleton yet.  I'll start hooking up the controls and 
explore
possible solutions.

Original comment by bjorn.ol...@gmail.com on 7 Apr 2008 at 4:53

GoogleCodeExporter commented 9 years ago
Just a startup example of my idea regarding the Coordinator (in lack for a 
better name):

class Coordinator{
    public: 
        static Coordinator& Instance();

        void Play(musik::core::tracklist::IRandomAccess &playlist);
        // Will copy a playlist to "now playing" and start playing it.

        void Play();
        void Stop();
        void Pause();
        void Next();
        void Previous();

        // We should probably need some signals for callback events
        // that we hook into the transportview

    protected:
        musik::core::tracklist::Standard nowPlaying;
};

Note: This is just a suggestion. Just think that a singleton is the best so 
that we
do not need to locate the transportview every time we need to copy a tracklist 
and
start playing it.

Original comment by onne...@gmail.com on 7 Apr 2008 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.ol...@gmail.com on 18 Apr 2008 at 5:50