Skip to content
Snippets Groups Projects
Commit 802a129f authored by jsiegle's avatar jsiegle
Browse files

Prevent segfaults when using updated windowBounds.xml files

parent d66567a5
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,9 @@ void MainWindow::loadWindowBounds()
forEachXmlChildElement(*xml, e)
{
if (e->hasTagName("BOUNDS"))
{
int x = e->getIntAttribute("x");
int y = e->getIntAttribute("y");
int w = e->getIntAttribute("w");
......@@ -174,6 +177,7 @@ void MainWindow::loadWindowBounds()
#endif
getContentComponent()->setBounds(0,0,w-10,h-33);
//setFullScreen(fs);
}
}
......
......@@ -359,7 +359,7 @@ void AudioNode::process(AudioSampleBuffer& buffer,
float *rightChannelData = buffer.getSampleData(1);
float gateLevel = noiseGateLevel * gain; // uVolts scaled by gain
for (int m=0; m < buffer.getNumSamples(); m++) {
for (int m = 0; m < buffer.getNumSamples(); m++) {
if (fabs(leftChannelData[m]) < gateLevel)
leftChannelData[m] = 0;
if (fabs(rightChannelData[m]) < gateLevel)
......
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