00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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