1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00
Commit graph

7653 commits

Author SHA1 Message Date
ed
34f8afbbca Set standalone plug-in window as resizable based on AudioProcessorEditor::isResizable() 2021-03-11 15:12:02 +00:00
ed
f2fffe6757 AU: Avoid a crash when calling setCurrentProgram() with an out-of-bounds index 2021-03-11 15:12:02 +00:00
reuk
c7feb75b97
PluginHostType: Use the name of the bridged hosting process to determine host
This patch also moves PluginHostType into juce_audio_processors in order
to allow hiding of function implementations.
2021-03-11 11:03:57 +00:00
reuk
1b4960b5bf
PluginHostType: Fix host reporting in bridged hosts on M1
Reports the correct host name for Apple hosts on M1 which host plugins
in a separate process.

Affected hosts are:
- Logic Pro
- GarageBand
- MainStage
- Final Cut Pro
2021-03-10 18:07:22 +00:00
reuk
9b80c7031e
VST3: Add support for 7.x.4 speaker arrangements 2021-03-10 16:14:42 +00:00
reuk
d62d3aaa4f
PopupMenu: Add option to specify initially-selected menu item 2021-03-10 16:14:42 +00:00
reuk
326d8deb16
PopupMenu: Tidy up Options implementation 2021-03-10 16:14:00 +00:00
reuk
daf8761727 AU Host: Ensure discrete parameters are scaled correctly
Previously, the AU hosting code always computed the number of steps in
the parameter range as though the minimum parameter value was 0.

Now, we take the parameter's reported minimum into account when
computing the number of steps. We also use the parameter's range, rather
than its step number, when normalising/denormalising the parameter
value.
2021-03-09 17:26:28 +00:00
ed
40c86d6b2f Linux: Fail more gracefully on systems which don't support 32-, 24-, or 16-bit RGB displays 2021-03-09 12:11:05 +00:00
reuk
27ca5e6ccb
MemoryAudioSource: Fix bug where source looped, even when looping was disabled
This also fixes an issue where zero-size source buffers would cause an
arithmetic exception to be thrown.
2021-03-08 16:10:08 +00:00
reuk
e0306d25d4
VST3 Client: Disallow creating a new editor if one editor is already active 2021-03-08 15:36:50 +00:00
reuk
3afaaa48be FileChooser: Fix IFileDialogEvents leak 2021-03-08 11:23:16 +00:00
ed
ba2027497b MIDI: Standardised and fixed some MIDI channel assertions 2021-03-05 18:40:04 +00:00
ed
fe9493867e Linux: Quote Bash command string in Process::openDocument() to prevent ampersands being treated as a control operator 2021-03-05 18:40:04 +00:00
ed
5a59c92b20 AudioProcessorEditor: Allow editors to have a corner resizer without being resizable by the host and clarified the documentation regarding this and the editor's constrainer 2021-03-05 18:40:04 +00:00
ed
655a6e9367 VST: Use ComponentPeer::getAreaCoveredBy() to get scaled editor bounds on Windows and Linux 2021-03-05 18:40:04 +00:00
ed
7b68d5fa4b VST: Increased the scoped of a thread DPI awareness setter when creating plug-in editors on Windows 2021-03-05 18:40:03 +00:00
ed
8140442746 VST: Removed an old workaround causing plug-in editor window position issues on macOS 2021-03-05 18:40:03 +00:00
ed
c32142a215 Windows: Fixed a build error and some unreachable code warnings when JUCE_WIN_PER_MONITOR_DPI_AWARE=0 2021-03-05 18:40:03 +00:00
reuk
6bcf603f2c
AppDelegate: Ensure correct lifetime of static objects
Arranges declarations of objects with static storage duration to ensure
correct lifetimes.
2021-03-05 11:26:22 +00:00
reuk
7a0b17c0d3 LinuxComponentPeer: Fix scaling in custom windows created by plugins
Previously, things like PopupMenus which were created in their own
windows were not being scaled correctly on HiDPI displays on Linux.

This patch forces the display scale to 1.0 in plugins, meaning that
the transform applied to the main plugin window is the sole source
of truth for component scaling in plugins.
2021-03-04 13:56:03 +00:00
reuk
fd2f866dd1 FileChooser: Avoid throwing bad_weak_ptr
It seems like shared_from_this may not be enabled when a unique_ptr is
assigned to a shared_ptr (although it *should* be enabled when
constructing a new shared_ptr from a unique_ptr). Functions that return
objects that may need to use shared_from_this now return shared_ptr,
just to be safe.

Additionally, in some cases, shared_from_this was being called from
Thread::run after the last reference to the shared object had been
released. We now call shared_from_this during 'open', which will always
run on the message thread while at least once reference to the shared
object is alive.
2021-03-03 19:21:43 +00:00
ed
1ff7fc38b1 Windows: Added ScopedDeviceContext helper 2021-03-02 15:56:55 +00:00
ed
f6338c0f8e Windows: Added ScopedThreadDPIAwarenessSetter for correctly setting and resetting thread DPI-awareness for methods which interact with an HWND and removed some DPI workarounds 2021-03-02 15:56:10 +00:00
ed
3a0af69eff AudioPluginHost: Added an application-level setting for scaling plug-ins on Windows 2021-03-02 15:53:45 +00:00
ed
b1253bfc74 Added JUCE_DECLARE_NON_MOVEABLE macro 2021-03-02 15:53:24 +00:00
reuk
75fae3bf21
AU: Fix midi output to use correct packet alignment on ARM 2021-03-02 11:15:51 +00:00
reuk
45409bb4e6
FileChooser: Hide chooser when it leaves scope on Windows 2021-03-02 10:49:39 +00:00
ed
e813531d9b VST3: Fixed an issue with jumpy resizing when using a fixed aspect ratio 2021-02-26 09:35:19 +00:00
reuk
10c77ce296
AAX: Set nonrealtime state appropriately when rendering with AudioSuite 2021-02-24 12:41:37 +00:00
reuk
552c7fcc3d
Convolution: Update documentation for prepare function 2021-02-24 12:41:37 +00:00
reuk
69b630a2c0 CoreMidi: Use RAII to avoid potential leaks of MIDI ports/endpoints 2021-02-23 18:05:06 +00:00
reuk
a48a564f9e AU: Use slightly more readable channel type 2021-02-23 18:05:06 +00:00
reuk
01f01e7d6e MidiBuffer: Ensure correct number of events are removed by clear function 2021-02-23 18:05:06 +00:00
ed
7c96f18663 TextEditor: Fixed a bug where the horizontal viewport scrollbar could be shown unnecessarily 2021-02-23 17:02:55 +00:00
ed
e18284978f FileChooser: Check JUCE_MODAL_LOOPS_PERMITTED in Native::runModally() 2021-02-22 09:08:09 +00:00
ed
08e6d2f9ee Windows: Set SWP_NOMOVE/SWP_NOSIZE flags when updating window position in HWNDComponent and use getSmallestIntegerContainer() when calculating scaled bounds 2021-02-20 17:34:26 +00:00
ed
363481540b VST3: Use CharPointer_UTF8 when converting from Steinberg::char8 to juce::String 2021-02-19 19:07:13 +00:00
ed
e1f892f6c3 VST3: Use UTF-16 encoding when assigning to a Steinberg::Vst::String128 in toString128() 2021-02-19 19:07:13 +00:00
ed
9622fc8e05 macOS: Added support for loading local files in WebBrowserComponent 2021-02-19 19:07:13 +00:00
ed
0fc0dce1b8 macOS: Don't call stop() in WebBrowserComponent::goToURL() when evaluating Javascript 2021-02-19 19:07:13 +00:00
ed
51cda82fb7 DSP: Fixed a documentation error in the Panner class 2021-02-19 19:07:12 +00:00
ed
f9f83fe3fa Correctly scale saturation value to 0-1 in HSL Colour constructor 2021-02-19 19:07:12 +00:00
ed
e9caafad8b VST: Removed JUCE_WIN_PER_MONITOR_DPI_AWARE check around setThreadDPIAwarenessForWindow() call 2021-02-19 19:07:12 +00:00
ed
3d378d0384 Windows: Avoid setting WINDOWPOS in handlePositionChanging() when "new" coordinates are floating-point rounding errors due to scale factor conversion 2021-02-19 19:07:12 +00:00
ed
ed0851313b Displays: Added floating-point physical<->logical coordinate conversion methods 2021-02-19 19:07:12 +00:00
ed
a7c5337568 VST/VST3: Removed a workaround for checking whether DPI-aware windows were incorrectly scaled in editor resized() callback 2021-02-19 19:07:12 +00:00
ed
ec0345c093 Windows: Check whether child HWNDs were already scaled during the scale factor listener callback to avoid double-scaling them in handleDPIChanging() 2021-02-19 19:07:12 +00:00
ed
3c494b8a70 VST3: Improved stability of scaled plug-in windows 2021-02-19 19:07:12 +00:00
ed
e1039fc1c9 VST: Improved stability of scaled plug-in windows 2021-02-19 19:07:12 +00:00