Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

SoundMedia.cpp

Go to the documentation of this file.
00001 
00007 #include "SoundMedia.h"
00008 
00009 SoundMedia::SoundMedia() {
00010 }
00011 
00012 SoundMedia::~SoundMedia() {
00013 }
00014 
00015 bool SoundMedia::initialize() {
00016         if (FSOUND_GetVersion() < FMOD_VERSION) {
00017                 LOG_ERROR(("Error : You are using the wrong DLL version!  You should be using FMOD %.02f\n", FMOD_VERSION));
00018                 return false;
00019         }
00020 
00021         if (!FSOUND_Init(32000, 64, 0)) {
00022                 LOG_ERROR(("%s\n", FMOD_ErrorString(FSOUND_GetError())));
00023                 return false;
00024         }
00025 
00026         LOG_SUCCESS(("FMOD initialized"));
00027         return true;
00028 }
00029 
00030 bool SoundMedia::deInitialize() {
00031         FSOUND_Close();
00032 
00033         LOG_SUCCESS(("FMOD deinitialized"));
00034         return true;
00035 }

Generated on Sun Jun 5 15:47:05 2005 for Defacto by  doxygen 1.4.3