fmodchannel.cpp

Go to the documentation of this file.
00001 #include "fmodchannel.h"
00002 #include "fmodmodule.h"
00003 
00004 FmodChannel::FmodChannel(BBoB_Module* mod, int channel_dir, int channel_type, QString channel_name )
00005         : BBoB_Channel(mod->getBase(), channel_dir, channel_type, channel_name)
00006 {
00007     Module = mod;
00008 }
00009 
00010 /** Called within the plugin to trigger output
00011  *
00012  */
00013 void FmodChannel::SendOutput(const QString s)
00014 {
00015     emit Output(s);
00016 }
00017 
00018 void FmodChannel::Input(QString s)
00019 {
00020     FmodModule* mod = (FmodModule*) Module;
00021     if (s == "1")
00022         if (mod)
00023             mod->Play(name);
00024     if (s == "0")
00025         if (mod)
00026             mod->Stop(name);
00027 }
00028 
00029 void FmodChannel::SaveSettings(const BBoB_Settings* settings, const QString modName)
00030 {
00031     qDebug("FmodChannel->SaveSettings : " + modName.toAscii() );
00032 }
00033 

Generated on Sun Oct 28 22:51:27 2007 for BBoB by  doxygen 1.5.3