1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

12684 commits

Author SHA1 Message Date
reuk
bb724761f2
FFT: Allow performFrequencyOnlyForwardTransform to ignore negative frequencies 2022-01-10 22:15:21 +00:00
reuk
82df66100c
MouseCursor: Allow arbitrarily-sized cursors on Windows 2022-01-10 22:15:21 +00:00
reuk
b0e689eaf4
AudioProcessLoadMeasurer: Fix potential divide by zero due to uninitialised samplesPerBlock 2022-01-10 22:15:21 +00:00
reuk
77c24ae49f
PopupMenu: Expose item ticked state to screen readers 2022-01-10 22:15:20 +00:00
reuk
3084a23547
PopupMenu: Improve accessibility of custom components in menus
The 'wrapper' accessibility handler is now ignored if a menu item has a
custom component, and has no submenu, and cannot be triggered
automatically. This avoids the case where a custom menu item may end up
with a wrapper accessibility handler that has no useful actions.

This patch also adds a 'label' argument to the addCustomItem functions,
which allows text for the screen reader to be supplied in the case where
a custom component is in use, but the menu item has accessibility
actions.
2022-01-10 22:15:20 +00:00
reuk
8b3fe6f250
WidgetsDemo: Avoid assertion in menu with custom components 2022-01-10 22:15:20 +00:00
reuk
8a2bde9fec
NSViewComponentPeer: Only allow full screen mode for resizable windows with maximise buttons
Effects of this change for windows with native titlebars:
- Resizable windows without maximise buttons will now only allow the
  'zoom' behaviour from the rightmost titlebar button (i.e. this button
  will not allow entering full-screen mode)
- Non-resizable windows will grey-out the rightmost titlebar button,
  whether or not the maximise button is enabled
2022-01-10 22:15:20 +00:00
reuk
05676c862a
UIViewComponentPeer: Allow setting an app style, to ensure the status bar can be seen over the app background 2022-01-10 22:15:20 +00:00
reuk
ad4368bbf1
UIViewComponentPeer: Clear focused peer on destruction to avoid dangling pointer 2022-01-10 22:15:20 +00:00
reuk
0cec50618d
FileChooser: Find an appropriate peer to focus when the FileChooser is destroyed
This works around a rare issue in the DialogsDemo where the AlertWindow
would fail to display because no peer had focus.
2022-01-10 22:15:20 +00:00
reuk
038d6dff32
FileChooser: Avoid calling member functions on pimpl after it is destroyed 2022-01-10 22:15:20 +00:00
reuk
37b92f6882
WavAudioFormat: Attempt to avoid quadratic metadata lookups 2022-01-10 22:15:19 +00:00
reuk
d66f9399ba
StringPairArray: Allow adding the contents of a std::unordered_map<String, String> 2022-01-10 22:15:19 +00:00
reuk
ca5c9fdae6
FloatVectorOperations: Add overloads accepting size_t element counts 2022-01-10 22:15:19 +00:00
reuk
43280c3f7f
AU: Tidy up ChannelRemapper 2022-01-10 22:15:19 +00:00
reuk
2073e46e79
iOS InAppPurchases: Use recommended receipt verification procedure 2022-01-10 22:15:18 +00:00
Tom Poole
48a7274b08 PopupMenu: Update the example docs 2022-01-10 15:32:13 +00:00
Tom Poole
74c8963880 DSP: Unconditionally use std::invoke_result instead of std::result_of if C++ 17 is available 2022-01-07 16:09:33 +00:00
reuk
cd34f1b00b
TreeView: Reset itemUnderMouse when deleting TreeViewItems to avoid dereferencing dangling pointers 2022-01-06 16:32:43 +00:00
attila
4f9a9c7bfc Linux: Fix BadWindow error when XSETTINGS is not available 2022-01-06 12:36:26 +01:00
Tom Poole
9979dd27fa Add a const specialisation to SampleTypeHelpers 2022-01-05 11:38:22 +00:00
attila
2b3abd3ca6 MacOS: Fix TextEditor when using marked text (e.g. Korean) 2022-01-04 17:20:11 +01:00
attila
87061fb751 MacOS: Change keyCode calculation to fix shortcuts with non-Latin languages 2022-01-04 17:20:11 +01:00
attila
b8094cb200 Android: Fix keyCode calculation and add support for modifier keys 2022-01-04 17:20:07 +01:00
ed
96383fb504 macOS: Fix nullptr dereference in WebInputStream on macOS versions < 10.10 2021-12-22 09:43:51 +00:00
attila
e329f524a2 StandaloneFilterWindow: Take native window borders into account when constraining size 2021-12-21 15:39:24 +00:00
ed
6eac100a79 macOS Accessibility: Pass through accessibility hit test to accessible view in MouseForwardingNSOpenGLViewClass 2021-12-21 15:36:36 +00:00
Tom Poole
ddaa091103 JUCE version 6.1.4 2021-12-20 11:16:43 +00:00
reuk
02b0b752ea Thread: Update macOS thread priority calculation
The Apple threading documentation [^1] says the following:

> The second argument to pthread_setschedparam is the desired policy,
  which can currently be one of SCHED_FIFO (first in, first out),
  SCHED_RR (round-robin), or SCHED_OTHER. The SCHED_OTHER policy is
  generally used for extra policies that are specific to a given
  operating system, and should thus be avoided when writing portable
  code.

This appears to differ from the policy semantics on Linux and BSD, where
FIFO and RR are both explicitly real-time policies.

Therefore, on Linux/BSD we only enable the RR policy if the requested
priority is 8 or higher. Meanwhile, on macOS, we map all thread
priorities (0 - 10) onto the RR policy with an appropriate priority.

[^1]: https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/scheduler/scheduler.html
2021-12-20 11:15:50 +00:00
Tom Poole
da5e0e0cd3 Resave all projects 2021-12-20 11:14:39 +00:00
Tom Poole
8a6e1980d0 Bump version number to 6.1.4 2021-12-20 11:06:15 +00:00
ed
469a3523b7 AudioPluginHost: Remove parameter listeners in PluginDebugWindow destructor 2021-12-20 09:24:01 +00:00
ed
f4f6433374 Android: Fix OpenSL build 2021-12-20 09:24:01 +00:00
ed
fe47c135a5 Docs: Fix typo 2021-12-20 09:24:01 +00:00
attila
f052e1becb Fix CharPointer_UTF8::isWhitespace() when encountering ideographic whitespace 2021-12-17 11:23:09 +01:00
reuk
1a8fb3e540
FFT: Add missing override to destructor 2021-12-15 14:39:50 +00:00
reuk
1ff05d3333
OpenGL: Avoid querying the native view hierarchy from a background thread on macOS 2021-12-15 14:14:07 +00:00
Tom Poole
07dec2d369 macOS: Suppress leak detector warnings for retained system tray icons on Big Sur 2021-12-15 12:19:06 +00:00
reuk
0bf2f6a7a4 Revert "Projucer: Default to "Sign to Run Locally" when no signing identity is specified"
This reverts commit 8bacf8c15c.
2021-12-14 22:50:09 +00:00
reuk
38318a094b Revert "Projucer: Set project changed flag when global properties change"
This reverts commit 6d38d7eb33.
2021-12-14 22:50:09 +00:00
reuk
f06d8098b0 Revert "Projucer: Only resave project if necessary"
This reverts commit 809252736b.
2021-12-14 22:50:09 +00:00
reuk
6d711a2312 Revert "Projucer: Check if IDE project file exists when saving"
This reverts commit a71bda9adb.
2021-12-14 22:50:09 +00:00
reuk
7984458a8e InAppPurchasesDemo: Avoid heap-use-after-free when rapidly playing samples 2021-12-14 22:50:09 +00:00
reuk
48c6087faf Thread: Update macOS thread priority calculation
The Apple threading documentation [^1] says the following:

> The second argument to pthread_setschedparam is the desired policy,
  which can currently be one of SCHED_FIFO (first in, first out),
  SCHED_RR (round-robin), or SCHED_OTHER. The SCHED_OTHER policy is
  generally used for extra policies that are specific to a given
  operating system, and should thus be avoided when writing portable
  code.

This appears to differ from the policy semantics on Linux and BSD, where
FIFO and RR are both explicitly real-time policies.

Therefore, on Linux/BSD we only enable the RR policy if the requested
priority is 8 or higher. Meanwhile, on macOS, we map all thread
priorities (0 - 10) onto the RR policy with an appropriate priority.

[^1]: https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/scheduler/scheduler.html
2021-12-14 22:50:09 +00:00
Tom Poole
a5b76d3989 macOS: Fix window icon NSImage leak 2021-12-14 20:54:31 +00:00
ed
53c6d19ed9 ValueTreePropertyWithDefault: Remove message thread dependency 2021-12-14 17:01:58 +00:00
ed
156722d299 Re-save projects 2021-12-14 17:01:26 +00:00
ed
aaf00f13ca Projucer: Bump Xcode LastUpgradeCheck 2021-12-14 16:58:34 +00:00
Tom Poole
05796beffd macOS: Fix CGImage memory access violation on Monterey 2021-12-14 14:36:52 +00:00
ed
08283c9969 ValueTreePropertyWithDefault: Initialise MessageManager in default setting unit test 2021-12-14 11:46:04 +00:00