Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IMusic.h

Go to the documentation of this file.
00001 /***********************************************************\
00002 Copyright (C) James Boer, 2002. 
00003 All rights reserved worldwide.
00004 
00005 This software is provided "as is" without express or implied
00006 warranties. You may freely copy and compile this source into
00007 applications you distribute provided that the copyright text
00008 below is included in the resulting source code, for example:
00009 "Portions Copyright (C) James Boer, 2002"
00010 \***********************************************************/
00011 #ifndef IMUSIC_H__
00012 #define IMUSIC_H__
00013 
00014 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00015 namespace Audio
00016 {
00017 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00018  
00020 
00022 
00029 class IMusicManager : public IMusicCallback
00030 {
00031 public:
00032 
00039         virtual bool Init() = 0;
00045         virtual void Term() = 0;
00052         virtual bool IsInitialized() = 0;
00053 
00061         virtual bool LoadScript(std::string sFileName) = 0;
00062 
00073         virtual bool PlayTheme(std::string sThemeName) = 0;
00079         virtual void ResetThemeItr() = 0;
00090         virtual bool GetNextTheme(std::string& sThemeName) = 0;
00097         virtual bool RemoveTheme(std::string& sThemeName) = 0;
00098 
00106         virtual bool RemoveAll() = 0;
00107 };
00108 
00114 inline static IMusicManager* MusicMgr()
00115 {  return AudioScriptFactory::GetMusicMgr();  }
00116 
00117 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00118 }; // namespace Audio
00119 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00120 
00121 
00122 #endif // IMUSIC_H__

Generated at Sun Jul 28 23:17:41 2002 for GAP Audio System by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001