more work

This commit is contained in:
Bob 2014-02-09 19:04:30 +01:00
parent 0dcb18930f
commit 84bbda5fe0
4 changed files with 85 additions and 1 deletions

40
src/ampswitch.cpp Normal file
View file

@ -0,0 +1,40 @@
/*
* ampswitch
* Copyright (C) Bob 2014
*
* ampswitch is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ampswitch is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ampswitch.h"
CAmpSwitch::CAmpSwitch(int argc, char *argv[])
{
}
CAmpSwitch::~CAmpSwitch()
{
}
void CAmpSwitch::Setup()
{
}
void CAmpSwitch::Process()
{
}
void CAmpSwitch::Cleanup()
{
}

35
src/ampswitch.h Normal file
View file

@ -0,0 +1,35 @@
/*
* ampswitch
* Copyright (C) Bob 2014
*
* ampswitch is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ampswitch is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AMPSWITCH_H
#define AMPSWITCH_H
class CAmpSwitch
{
public:
CAmpSwitch(int argc, char *argv[]);
~CAmpSwitch();
void Setup();
void Process();
void Cleanup();
private:
};
#endif //AMPSWITCH_H

View file

@ -16,8 +16,16 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ampswitch.h"
int main (int argc, char *argv[])
{
CAmpSwitch ampswitch(argc, argv);
ampswitch.Setup();
ampswitch.Process();
ampswitch.Cleanup();
return 0;
}

View file

@ -22,7 +22,8 @@ def configure(conf):
conf.write_config_header('config.h')
def build(bld):
bld.program(source='src/main.cpp',
bld.program(source='src/main.cpp\
src/ampswitch.cpp',
use=['jack'],
includes='./src',
cxxflags='-Wall -g',