1 /* GemRB - Infinity Engine Emulator
2 * Copyright (C) 2003 The GemRB Project
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #include "FileStream.h"
27 #include "ResourceManager.h"
31 /**MUS PlayList Importer
32 *@author GemRB Development Team
43 class MUSImporter
: public MusicMgr
{
50 std::vector
< PLString
> playlist
;
51 unsigned int lastSound
;
52 ResourceManager manager
;
54 void PlayMusic(int pos
);
55 void PlayMusic(char* name
);
59 /** Loads a PlayList for playing */
60 bool OpenPlaylist(const char* name
);
61 /** Initializes the PlayList Manager */
63 /** Switches the current PlayList while playing the current one */
64 int SwitchPlayList(const char* name
, bool Hard
);
65 /** Ends the Current PlayList Execution */
68 /** Start the PlayList Music Execution */
70 /** Plays the Next Entry */
72 /** Returns whether music is currently playing */
73 bool IsPlaying() { return Playing
; }
74 /** Returns whether given playlist is currently loaded */
75 bool CurrentPlayList(const char* name
);