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

2564 commits

Author SHA1 Message Date
reuk
3fe0b07a82
SystemStats: Avoid "pragma intrinsic" when building with the Intel compiler 2021-03-16 17:20:14 +00:00
ed
77d4ac7242 URL: Fixed backwards compatibility of URL::createInputStream() when specifying a POST-like request with parameters and no POST data 2021-03-15 09:58:09 +00:00
ed
fa8c446d0c URL: Added InputStreamOptions and enable POST data to be sent with URL-encoded parameters.
- Added a new URL::createInputStream() overload that takes an InputStreamOptions helper class to simplify stream creation.
  - Modified the internals of URL and WebInputStream so that parameters are only added to the request body when ParameterHandling is set to inPostData. This allows POST data to be added via URL::withPOSTData() and sent with URL-encoded parameters.
2021-03-12 16:23:59 +00:00
ed
f9f0896bbb Tidied up URL and WebInputStream docs 2021-03-12 16:21:00 +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
b1253bfc74 Added JUCE_DECLARE_NON_MOVEABLE macro 2021-03-02 15:53:24 +00:00
reuk
be1e3df4d0 macOS: Be explicit about string encodings when logging assertions 2021-02-18 17:16:45 +00:00
reuk
c6280f7b8a
XmlElement: Fix rare crash when parsing truncated escape sequences 2021-02-18 10:54:29 +00:00
reuk
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
Tom Poole
2018ceca3b macOS ARM: Allow the debugger to move past failed assertions 2021-02-10 13:48:46 +00:00
jules
a9b5fe3a39 Tweaks for emscripten support 2021-02-08 09:59:46 +00:00
Tom Poole
7c33b2132f Fixed some parsing issues in readDoubleValue 2021-02-03 17:53:32 +00:00
reuk
837ab64dbd
Android: Fix numeric conversion warnings 2021-02-03 16:09:54 +00:00
Tom Poole
dbecf24722 Fixed a typo in the documentation 2021-02-01 15:13:37 +00:00
ed
46f5b126d5 Tidied up some template statement whitespace 2021-01-29 15:40:12 +00:00
ed
af69be5346 Windows: Tidied up the usage of the JUCE_COMCALL, JUCE_COMCLASS, and JUCE_IUNKNOWNCLASS macros 2021-01-29 15:40:12 +00:00
ed
dc242f76db Windows: Added multiple inheritance support to ComBaseClassHelper 2021-01-29 15:40:12 +00:00
reuk
6ff54f0a64
XmlElement: Fix conversion issue when passing Identifiers to forEachXmlChildElementWithTagName 2021-01-29 12:57:44 +00:00
reuk
3baaad8b5b
XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
reuk
40f6ac7c47
XmlElement: Add range-for-compatible iterators 2021-01-28 20:14:11 +00:00
reuk
c41149f48d
String: Fix documentation for getTrailingIntValue 2021-01-28 15:59:24 +00:00
reuk
ff758a53b4
Array: Fix perfect forwarding when adding elements 2021-01-22 10:23:11 +00:00
ed
4c008505c9 Fixed an uninitialised variable in the posix ChildProcess::isRunning() implementation 2021-01-22 09:26:17 +00:00
reuk
ae1076d01f
var: Make it safe to create var instances with static storage duration 2021-01-15 11:17:12 +00:00
Tom Poole
2553336f45 Bump version number to 6.0.7 2021-01-14 17:26:20 +00:00
Tom Poole
25dccd53c0 Bump version number to 6.0.6 2021-01-13 16:06:01 +00:00
reuk
452b1bf224
HiResTimer: Fix units used for threading policy
The values in mach_timebase_info_data_t should be specified in terms of
'ticks'. On some machines, ticks may correspond to nanoseconds, but this
is not guaranteed.
2021-01-06 14:55:01 +00:00
reuk
857f665f74
HiResTimer: Tidy up POSIX implementation using std threading constructs 2021-01-06 14:55:00 +00:00
reuk
6787230dd4
HiResTimer: Fix bug where timer would misreport its state after being stopped
Previously, if `stopTimer()` was called from within
`hiResTimerCallback()`, a call to `isTimerRunning()` immediately
following the call to `stopTimer()` would return true instead of false.

This patch fixes the issue, and adds some tests to verify the new
behaviour.
2021-01-06 14:54:42 +00:00
reuk
dc3e0d1571
SystemStats: Fix getOperatingSystemType assertion on macOS 11.1 2020-12-15 16:00:54 +00:00
ed
47a0dc81f6 macOS: Fixed 10.7 compatibility 2020-12-08 14:49:15 +00:00
reuk
9032f589eb
CoreMIDI: Enable support for new API 2020-12-03 12:30:22 +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
Tom Poole
5929103a29 Bump version number to 6.0.5 2020-12-01 10:08:50 +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
e4c3d53c7a Android: Request ACCESS_FINE_LOCATION permission when using Bluetooth 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
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
1e532b2ae0 macOS: Use objc_msgSendSuper_stret() for return types > 8 bytes in 32-bit builds 2020-11-03 09:46:18 +00:00
reuk
35277443e4 SystemStats: Use new dictionaryWithContentsOfURL signature 2020-10-29 15:53:33 +00:00
reuk
6e02c45d37 FileChooser: Fix build compatibility issue with MinGW
The recent IFileChooser update to the JUCE FileChooser meant that
Windows build machines must be running Vista or newer.

For compilers other than MinGW, we were already requiring that the build
machine must be running Windows 8 or newer.
2020-10-26 11:01:32 +00:00
Tom Poole
c35bb61c8d Bump version number to 6.0.4 2020-10-14 11:40:30 +01:00
Tom Poole
73d1a1ff45 Bump version number to 6.0.3 2020-10-05 18:33:04 +01:00