Skip to content
Snippets Groups Projects
Commit 3af2ca1a authored by jsiegle's avatar jsiegle
Browse files

Commit before branching

parent 2a907b9f
No related branches found
No related tags found
No related merge requests found
/*
==============================================================================
------------------------------------------------------------------
AccessClass.cpp
Created: 1 Mar 2012 1:36:31pm
Author: jsiegle
This file is part of the Open Ephys GUI
Copyright (C) 2012 Open Ephys
------------------------------------------------------------------
This program 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.
This program 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 "AccessClass.h"
......
/*
==============================================================================
------------------------------------------------------------------
AccessClass.h
Created: 1 Mar 2012 1:17:45pm
Author: jsiegle
This file is part of the Open Ephys GUI
Copyright (C) 2012 Open Ephys
------------------------------------------------------------------
This program 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.
This program 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 __ACCESSCLASS_H_CE1DC2DE__
......@@ -23,6 +36,15 @@ class ControlPanel;
class Configuration;
class AudioComponent;
/**
Allows subclasses to access important pointers within the application.
@see UIComponent
*/
class AccessClass : public ActionBroadcaster
{
public:
......
......@@ -37,6 +37,8 @@ AudioNode::AudioNode()
leftChan.add(0);
rightChan.add(1);
currentChannel = 0;
}
......@@ -70,6 +72,16 @@ void AudioNode::process(AudioSampleBuffer &buffer,
int& nSamples)
{
// if (currentChannel == 0)
// {
// buffer.clear(1,0,buffer.getNumSamples());
// buffer.copyFrom();
// } else if (currentChannel == 1)
// {
// buffer.clear(0,0,buffer.getNumSamples());
// buffer.copyFrom();
// } else {
buffer.clear(0,0,buffer.getNumSamples());
buffer.clear(1,0,buffer.getNumSamples());
......@@ -94,4 +106,5 @@ void AudioNode::process(AudioSampleBuffer &buffer,
volume // gain to apply
);
}
//}
}
......@@ -29,7 +29,6 @@ EventNode::EventNode()
{
setNumOutputs(0);
setNumInputs(0);
// setSampleRate(44100.0);
setPlayConfigDetails(getNumInputs(), getNumOutputs(), 44100.0, 128);
......@@ -46,13 +45,9 @@ AudioProcessorEditor* EventNode::createEditor()
setEditor(editor);
std::cout << "Creating editor." << std::endl;
//editor->setUIComponent(getUIComponent());
//editor->setConfiguration(config);
//filterEditor = new FilterEditor(this);
return editor;
//return 0;
}
......
......@@ -33,8 +33,6 @@
#include "../OpenGL.h"
//------------------------------------------------------------------------
/**
Displays information and provides buttons to control acquistion and recording.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment