Skip to content

Commit c0e1406

Browse files
committed
Merge branch 'development' into network-events-load-fix
2 parents 1f54cc5 + 5889221 commit c0e1406

12 files changed

Lines changed: 34 additions & 12 deletions

File tree

Builds/MacOSX/OpenEphys.xcworkspace/xcshareddata/xcschemes/All.xcscheme

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "0720"
4-
version = "1.7">
4+
version = "1.8">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
@@ -373,7 +373,6 @@
373373
buildConfiguration = "Debug"
374374
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
375375
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
376-
language = ""
377376
launchStyle = "0"
378377
useCustomWorkingDirectory = "NO"
379378
ignoresPersistentStateOnLaunch = "NO"

Builds/MacOSX/open-ephys.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 51;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -4314,7 +4314,7 @@
43144314
};
43154315
};
43164316
buildConfigurationList = 3B096175C0B17BFA58475A08 /* Build configuration list for PBXProject "open-ephys" */;
4317-
compatibilityVersion = "Xcode 3.2";
4317+
compatibilityVersion = "Xcode 10.0";
43184318
developmentRegion = en;
43194319
hasScannedForEncodings = 0;
43204320
knownRegions = (

Builds/MacOSX/open-ephys.xcodeproj/xcshareddata/xcschemes/open-ephys (App).xcscheme

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "0730"
4-
version = "1.7">
4+
version = "1.8">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
@@ -65,7 +65,6 @@
6565
buildConfiguration = "Debug"
6666
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
6767
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
68-
language = ""
6968
launchStyle = "0"
7069
useCustomWorkingDirectory = "NO"
7170
ignoresPersistentStateOnLaunch = "NO"

Builds/VisualStudio2013/open-ephys.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ VisualStudioVersion = 12.0.31101.0
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "open-ephys", "open-ephys.vcxproj", "{9C924D66-7DEC-1AEF-B375-DB8666BFB909}"
66
EndProject
7+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DE917D74-FAF2-41E9-BE61-CD40C62EB7D0}"
8+
ProjectSection(SolutionItems) = preProject
9+
Performance1.psess = Performance1.psess
10+
EndProjectSection
11+
EndProject
712
Global
813
GlobalSection(SolutionConfigurationPlatforms) = preSolution
914
Debug|Win32 = Debug|Win32

JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
==============================================================================
2323
*/
2424

25-
const int AudioProcessorGraph::midiChannelIndex = 0x1000;
25+
const int AudioProcessorGraph::midiChannelIndex = 0x8000;
2626

2727
//==============================================================================
2828
template <typename FloatType, typename Impl> struct FloatDoubleUtil {};
@@ -767,7 +767,9 @@ struct RenderingOpSequenceCalculator
767767
}
768768
else
769769
{
770-
for (int i = 0; i < node->getProcessor()->getTotalNumInputChannels(); ++i)
770+
//Open ephys modification
771+
unsigned int numInputChannels = node->getProcessor()->getTotalNumInputChannels();
772+
for (int i = 0; i < numInputChannels; ++i)
771773
if (i != inputChannelOfIndexToIgnore
772774
&& graph.getConnectionBetween (nodeId, outputChanIndex,
773775
node->nodeId, i) != nullptr)

Source/Plugins/EventBroadcaster/EventBroadcaster.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ int EventBroadcaster::setListeningPort(int port, bool forceRestart)
189189
return 0;
190190
#endif
191191
}
192+
return 0; // CJB added
192193
}
193194

194195

Source/Plugins/EvntTrigAvg/EvntTrigAvgCanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void EvntTrigAvgCanvas::resized()
105105

106106
void EvntTrigAvgCanvas::paint(Graphics& g)
107107
{
108-
g.fillAll(Colours::darkgrey);
108+
g.fillAll(Colour(0,18,43));
109109

110110
int width=getWidth();
111111
int height=getHeight();

Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,6 +3033,11 @@ bool LfpDisplay::getSingleChannelState()
30333033

30343034
void LfpDisplay::mouseDown(const MouseEvent& event)
30353035
{
3036+
if (drawableChannels.isEmpty())
3037+
{
3038+
return;
3039+
}
3040+
30363041
//int y = event.getMouseDownY(); //relative to each channel pos
30373042
MouseEvent canvasevent = event.getEventRelativeTo(viewport);
30383043
int y = canvasevent.getMouseDownY() + viewport->getViewPositionY(); // need to account for scrolling

Source/Processors/AudioNode/AudioNode.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void AudioNode::addInputChannel(GenericProcessor* sourceNode, int chan)
111111

112112
int channelIndex = getNextChannel(false);
113113

114-
setPlayConfigDetails(channelIndex+1,0,44100.0,128);
114+
//setPlayConfigDetails(channelIndex+1,0,44100.0,128);
115115

116116
auto dataChannel = sourceNode->getDataChannel(chan);
117117
auto dataChannelCopy = new DataChannel(*dataChannel);
@@ -121,6 +121,11 @@ void AudioNode::addInputChannel(GenericProcessor* sourceNode, int chan)
121121

122122
}
123123

124+
void AudioNode::updatePlaybackBuffer()
125+
{
126+
setPlayConfigDetails(dataChannelArray.size(), 0, 44100.0, 128);
127+
}
128+
124129
void AudioNode::setParameter(int parameterIndex, float newValue)
125130
{
126131
// change left channel, right channel, or volume

Source/Processors/AudioNode/AudioNode.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class AudioNode : public GenericProcessor
112112
/** Establishes a connection between a channel of a GenericProcessor and the AudioNode. */
113113
void addInputChannel(GenericProcessor* source, int chan);
114114

115+
/** Updates the audio buffer size*/
116+
void updatePlaybackBuffer();
117+
115118
/** A pointer to the AudioNode's editor. */
116119
ScopedPointer<AudioEditor> audioEditor;
117120

0 commit comments

Comments
 (0)