more work
This commit is contained in:
parent
0dcb18930f
commit
84bbda5fe0
4 changed files with 85 additions and 1 deletions
40
src/ampswitch.cpp
Normal file
40
src/ampswitch.cpp
Normal 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
35
src/ampswitch.h
Normal 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
|
|
@ -16,8 +16,16 @@
|
||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "ampswitch.h"
|
||||||
|
|
||||||
int main (int argc, char *argv[])
|
int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
CAmpSwitch ampswitch(argc, argv);
|
||||||
|
|
||||||
|
ampswitch.Setup();
|
||||||
|
ampswitch.Process();
|
||||||
|
ampswitch.Cleanup();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
wscript
3
wscript
|
@ -22,7 +22,8 @@ def configure(conf):
|
||||||
conf.write_config_header('config.h')
|
conf.write_config_header('config.h')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.program(source='src/main.cpp',
|
bld.program(source='src/main.cpp\
|
||||||
|
src/ampswitch.cpp',
|
||||||
use=['jack'],
|
use=['jack'],
|
||||||
includes='./src',
|
includes='./src',
|
||||||
cxxflags='-Wall -g',
|
cxxflags='-Wall -g',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue