CSoundManager::CSoundManager (SOUNDMANAGER_PARAMETERS smpp) { InitSuccessfull = false; its_LoadedSongs = 0; its_LoadedSounds = 0; its_GlobalMusicVolume = float(smpp.GlobalMusicVolume); its_GlobalSoundVolume = float(smpp.GlobalSoundVolume); // Sounds auf NULL setzen for (int i=0; i<MAX_SOUNDS; i++) its_Sounds[i] = NULL; // Songs auf NULL setzen for (int i=0; i<MAX_SONGS; i++) its_Songs[i] = NULL; if (InitFMOD(smpp) == true) { Protokoll.WriteText("Sound Manager created\n", false); } else { Protokoll.WriteText("\n-> Create Sound Manager failed !\n", true); } }; // Überladener Konstruktor
CSoundManager::CSoundManager() { SOUNDMANAGER_PARAMETERS smpp; InitSuccessfull = false; its_LoadedSongs = 0; its_LoadedSounds = 0; its_GlobalMusicVolume = 100; its_GlobalSoundVolume = 100; smpp.MaxSoftwareChannels = 64; smpp.Mixrate = 44100; smpp.Flags = FSOUND_INIT_USEDEFAULTMIDISYNTH; // Sounds auf NULL setzen for (int i=0; i<MAX_SOUNDS; i++) its_Sounds[i] = NULL; // Songs auf NULL setzen for (int i=0; i<MAX_SONGS; i++) its_Songs[i] = NULL; InitSuccessfull = InitFMOD(smpp); if (true == InitSuccessfull) Protokoll.WriteText("Sound Manager created\n", false); else Protokoll.WriteText("\n-> Create Sound Manager failed !\n", false); }; // Konstruktor
SoundManager::SoundManager(float musicVol,float effectvol) { m_musicVolume = musicVol; m_effectVolume = effectvol; InitFMOD(); }