Adds event logging, code cleanup and some decoder issue resolution.

This commit is contained in:
denny
2015-09-02 19:41:44 -04:00
parent f4d8ea281d
commit 0f85b7260a
124 changed files with 469 additions and 1416 deletions

View File

@@ -21,7 +21,6 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
import module.ProcessingChainOld;
import properties.SystemProperties;
import record.config.RecordConfiguration;
import record.wave.ComplexWaveRecorder;
@@ -35,8 +34,9 @@ public class RecorderManager
public RecorderManager()
{
}
public List<Recorder> getRecorder( ProcessingChainOld channel )
//TODO: make this return modules
public List<Recorder> getRecorders( RecordConfiguration config )
{
/* Note: the file suffix (ie .wav) gets added by the recorder */
@@ -47,12 +47,10 @@ public class RecorderManager
sb.append( File.separator );
sb.append( TimeStamp.getTimeStamp( "_" ) );
sb.append( "_" );
sb.append( channel.getChannel().getName() );
// sb.append( channel.getChannel().getName() );
ArrayList<Recorder> retVal = new ArrayList<Recorder>();
RecordConfiguration config = channel.getChannel().getRecordConfiguration();
for( RecorderType recorder: config.getRecorders() )
{
switch( recorder )