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

7490 commits

Author SHA1 Message Date
reuk
cd41e31cb5
DSP: Ensure that IRs are loaded immediately when Convolution is prepared
Previously, if `loadImpulseResponse` was called before `prepareToPlay`,
the IR wasn't guaranteed to have loaded before the first call to
`processSamples`.

Now, we flush the queue of pending IR-load commands during
`prepareToPlay`, which should ensure that the most recently-loaded IR is
ready to use immediately.
2020-12-15 13:07:18 +00:00
reuk
41ec486dd0
FileChooser: Show desktop folder if requested folder does not exist
This change affects the PostVista version of the Windows FileChooser.
2020-12-15 11:25:56 +00:00
reuk
e403e330ef
DSP: Make FixedSizeFunction public 2020-12-15 11:25:56 +00:00
reuk
dadac11ffd
MIDI: Fix naming to match JCS in SysEx7::Kind enum 2020-12-14 12:20:47 +00:00
reuk
c540fa4241
DSP: Slightly tidied filter-design function 2020-12-14 12:20:47 +00:00
Ivan Cohen
b2e49bc7e8
DSP: Solved an issue with FilterDesign::designFIRLowpassHalfBandEquirippleMethod for low amplitudedB and normalisationTransitionWidth close to 0.5 2020-12-14 12:20:47 +00:00
ed
088e100c1f Narrowed the scoped of some undeclared Objective-C selector warnings 2020-12-10 12:48:42 +00:00
ed
30f8594ecf macOS: Fixed an incorrect selector in JuceNSViewClass 2020-12-10 12:47:40 +00:00
ed
3a908f848a macOS: Fixed an incorrect selector in the WKWebView delegate class 2020-12-10 12:47:32 +00:00
ed
dc21f6fdad macOS: Fixed 10.11 compatibility in the WKWebView code 2020-12-10 12:46:42 +00:00
Tom Poole
56373bcc07 Restricted some disabled warning regions 2020-12-08 16:48:31 +00:00
ed
a7667077f8 Android: Fixed a crash when juce_gui_extra is not present
The default main JuceActivity for JUCE apps calls appNewIntent() in its onNewIntent() implementation which is defined in juce_gui_extra. This commit moves the implementation into juce_gui_basics.
2020-12-08 14:49:15 +00:00
ed
47a0dc81f6 macOS: Fixed 10.7 compatibility 2020-12-08 14:49:15 +00:00
ed
0f975ee482 Added a way to specify some space between PropertyComponents in a PropertyPanel 2020-12-03 17:27:10 +00:00
reuk
9032f589eb
CoreMIDI: Enable support for new API 2020-12-03 12:30:22 +00:00
reuk
051f49c52e
WAV: Fail gracefully on unsupported bit depths 2020-12-03 12:06:01 +00:00
reuk
17dc5f7a92
MP3: Fail gracefully on unsupported mp3 formats 2020-12-03 12:06:01 +00:00
reuk
5d26b6a20f
Aiff: Fix extremely slow loads of pathological files
If an aiff file advertied a large number of metadata keys, the
StringPairArray::set calls resulted in quadratic complexity.

We now read keys into a std::map instead, as it enables much faster
lookup, and then convert back to a StringPairArray at the last possible
moment.
2020-12-03 12:06:00 +00:00
reuk
f59785606c
MPEInstrument: Reset last received values when setting a new MPE zone layout 2020-12-02 18:58:38 +00:00
reuk
eaf82243a2
WebBrowser: Fix deprecation warnings on macOS 2020-12-02 15:33:36 +00:00
ed
9d0a97c33c Ensure that modal components set auto-delete when dismissed are properly cleaned up 2020-12-01 19:13:11 +00:00
Tom Poole
5929103a29 Bump version number to 6.0.5 2020-12-01 10:08:50 +00:00
reuk
6ac0e90e58
FileChooser: Allow new filechooser to load paths containing unicode characters 2020-11-30 19:50:46 +00:00
ed
7053df4b5b iOS: Fixed incorrect desktop window position 2020-11-30 18:27:55 +00:00
ed
45a2e57bf9 macOS: Add Foundation to juce_core OSXFrameworks
Previously we relied on Foundation.framework being implicitly linked by other frameworks, but this change is required when building with Xcode 12 targeting older macOS versions to fix missing CFNetwork symbols.
2020-11-30 11:20:08 +00:00
ed
142a52f9b8 Unquote command-line arguments when adding them to ArgumentList 2020-11-26 19:01:43 +00:00
ed
3a3ef41ad5 Added <array> to juce_StandardHeader.h and removed some unnecessary includes from juce_analytics and juce_dsp 2020-11-25 17:40:12 +00:00
ed
4de5726775 Android: Don't assert on device type 25 which seems to be valid when debugging from Android Studio (although undocumented) 2020-11-25 17:40:03 +00:00
ed
e4c3d53c7a Android: Request ACCESS_FINE_LOCATION permission when using Bluetooth 2020-11-25 17:39:57 +00:00
ed
9005c81f47 Windows: Fixed a potential crash in the DirectWrite TextLayout::createNativeLayout() implementation 2020-11-25 17:39:57 +00:00
reuk
5a19a7c8e8 IPC: Fix potential deadlock in win32 NamedPipe implementation
We use a manual-reset event rather than an auto-reset event to cancel IO
on the pipe. This avoids unlucky cases where new IO would start just
after signalling the event and would block indefinitely while waiting on
the newly-unsignalled event.
2020-11-25 12:50:44 +00:00
reuk
c5136d28b7 NamedPipe: Avoid spurious test failures due to pipe name collisions 2020-11-24 14:45:50 +00:00
reuk
ac612693aa NamedPipe: Fix potential vptr data-race in unit tests 2020-11-23 13:46:06 +00:00
reuk
389e7436ef
IPC: Add some missing locks in native NamedPipe implementations 2020-11-23 12:45:36 +00:00
reuk
9b90398cf9
IPC: Fix occasional windows crash
As far as I can tell, if a read was cancelled from a background thread,
the IO operation wasn't cancelled, so the system was poking at the
stack-allocated OVERLAPPED structure after it had been removed from the
stack, at which point something else might be occupying that region of
stack memory.

I'm pretty sure Address Sanitizer should be able to catch this sort of
thing so I'm surprised it didn't complain here.
2020-11-20 12:14:49 +00:00
reuk
84be2fea9a
IPC: Avoid deadlocks when destroying pipes
Previously, calls to `open` blocked when creating a writeable pipe.

This could cause other calls to block indefinitely, waiting for the pipe
to become available.

Now, we open the pipe in nonblocking mode, which allows us to retry
indefinitely, checking `stopReadOperation` each time to find out whether
`close` has been called and allowing a graceful exit.
2020-11-16 20:14:16 +00:00
reuk
472fac976b
IPC: Prevent disconnection while a read is in progress 2020-11-16 20:13:46 +00:00
reuk
a70101e3ec
IPC: Allow setting custom timeouts in disconnect
Also allows optionally ignoring callbacks during disconnect, so that the
call to `connectionLost` can be bypassed when disconnect is called from
the derived class destructor.
2020-11-16 20:13:46 +00:00
reuk
750c982c1d
Camera: Warn when adding a preview component after starting capture on macOS 2020-11-16 17:22:00 +00:00
reuk
f1362dbb93
Camera: Make addListener trigger continuous photo capture on iOS 2020-11-16 17:22:00 +00:00
ed
8ee13b78ba Avoid drawing TextEditor "empty" text when it isn't visible 2020-11-16 16:10:13 +00:00
ed
e0883ace58 macOS: Updated the required deployment target for WKWebView 2020-11-16 14:01:29 +00:00
reuk
43c692e20d
DSP: Fix typo in Convolution docs 2020-11-16 10:14:54 +00:00
ed
36f1197536 macOS: Forward key events from WKWebView correctly
Also added support for selectAll: selector forwarding in NSViewComponentPeer
2020-11-13 18:16:04 +00:00
ed
5ae32084a7 Made the assertion in the Timer destructor slightly less strict 2020-11-13 18:16:04 +00:00
ed
884f2c1332 Windows: Use Thread::sleep() instead of yield() when waiting for ChildProcess output to avoid eating CPU 2020-11-11 17:38:51 +00:00
ed
270e056e40 CoreAudio: Fixed a data race on isWaitingForInput in DeviceWrapper 2020-11-03 17:07:47 +00:00
ed
09ecc0ebef Linux: Fixed a use-after-free in XWindowSystem::findDisplays() 2020-11-03 17:07:38 +00:00
Tom Poole
8070fa0ec4 Fixed some compiler warnings 2020-11-03 14:01:49 +00:00
ed
1e532b2ae0 macOS: Use objc_msgSendSuper_stret() for return types > 8 bytes in 32-bit builds 2020-11-03 09:46:18 +00:00