1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Small fix to ALSA audio; small fix for Linux window border sizes; fix to stop win32 incorrectly making windows always-on-top; added a constructor for MidiBuffer.

This commit is contained in:
jules 2009-05-01 15:53:57 +00:00
parent a7a5e8079f
commit 829f0c8dde
7 changed files with 74 additions and 26 deletions

View file

@ -395,8 +395,8 @@ public:
close();
}
void open (const BitArray& inputChannels,
const BitArray& outputChannels,
void open (BitArray inputChannels,
BitArray outputChannels,
const double sampleRate_,
const int bufferSize_)
{
@ -447,6 +447,8 @@ public:
return;
}
currentOutputChans.setRange (0, minChansIn, true);
if (! outputDevice->setParameters ((unsigned int) sampleRate,
jlimit ((int) minChansOut, (int) maxChansOut, currentOutputChans.getHighestBit() + 1),
bufferSize))
@ -468,6 +470,8 @@ public:
return;
}
currentInputChans.setRange (0, minChansIn, true);
if (! inputDevice->setParameters ((unsigned int) sampleRate,
jlimit ((int) minChansIn, (int) maxChansIn, currentInputChans.getHighestBit() + 1),
bufferSize))

View file

@ -817,19 +817,23 @@ public:
// Make sure the Window manager does what we want
XSizeHints* hints = XAllocSizeHints();
hints->flags = USSize | USPosition;
hints->width = ww + windowBorder.getLeftAndRight();
hints->height = wh + windowBorder.getTopAndBottom();
hints->x = wx - windowBorder.getLeft();
hints->y = wy - windowBorder.getTop();
hints->width = ww;
hints->height = wh;
hints->x = wx;
hints->y = wy;
if ((getStyleFlags() & (windowHasTitleBar | windowIsResizable)) == windowHasTitleBar)
{
hints->min_width = hints->max_width = hints->width;
hints->min_height = hints->max_height = hints->height;
hints->flags |= PMinSize | PMaxSize;
}
XSetWMNormalHints (display, windowH, hints);
XFree (hints);
}
XMoveResizeWindow (display, windowH,
wx - windowBorder.getLeft(),
wy - windowBorder.getTop(),
ww + windowBorder.getLeftAndRight(),
wh + windowBorder.getTopAndBottom());
XMoveResizeWindow (display, windowH, wx, wy, ww, wh);
if (! deletionChecker.hasBeenDeleted())
{