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

implementation_clansound.cpp

Go to the documentation of this file.
00001 /*
00002         $Id: implementation_clansound.cpp,v 1.5 2001/03/10 17:26:27 mbn Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 */
00014 
00015 #include "Core/precomp.h"
00016 
00017 #ifdef USE_CLANSOUND
00018 
00019 #include "implementation_clansound.h"
00020 #include "Sound/Sound/ClanSound/soundcard_clan.h"
00021 #include "Sound/Sound/ClanSound/cdaudio_linux.h"
00022 #include "implementation.h"
00023 #include "API/Core/System/error.h"
00024 
00025 static CL_Implementation_ClanSound impl_clansound;
00026 
00027 extern "C"
00028 {
00029         DL_PREFIX char *clan_module_identify()
00030         {
00031                 return "Default Clansound implementation";
00032         }
00033 
00034         DL_PREFIX char* clan_module_abbreviation()
00035         {
00036                 return "cls";
00037         }
00038 
00039         DL_PREFIX void clan_module_init()
00040         {
00041                 impl_clansound.add_sound();
00042         }
00043 }
00044 
00045 char *clansound_identify() { return clan_module_identify(); }
00046 char *clansound_abbreviation() { return clan_module_abbreviation(); }
00047 void clansound_init() { clan_module_init(); }
00048 
00049 void CL_Implementation_ClanSound::add_sound()
00050 {
00051         try
00052         {
00053                 CL_Sound::cards.push_back(new CL_SoundCard_ClanSound);
00054                 CL_CDDrive_Linux::init_cdaudio();
00055         }
00056         catch (CL_Error error)
00057         {
00058                 std::cout << "ClanSound: " << error.message << std::endl;
00059         }
00060 }
00061 
00062 #endif

Generated at Wed Apr 4 19:54:00 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001