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

13296 commits

Author SHA1 Message Date
reuk
7c14c1fcd7
Use more concise stdlib type aliases 2022-09-26 18:03:47 +01:00
reuk
21d87c02c2
MathsFunctions: Make countNumberOfBits constexpr 2022-09-22 19:36:40 +01:00
reuk
b70b7a309d
TimeSliceThread: Add function to check whether a certain job is still registered 2022-09-22 19:36:40 +01:00
attila
7aa3bfdc93 GenericInterpolator: Fix discontinuity when changing the speedRatio 2022-09-22 18:19:56 +02:00
attila
d15e152da5 Fix TopLevelWindow::centreAroundComponent 2022-09-22 18:18:59 +02:00
attila
44dd0649fd Grid: Fix layout for very small items
Until this commit Items with a size of 1 could be rounded to
bounds with a size of 0 or 2 due to floating point errors, leading
to slightly too large or disappearing items. The new approach
preserves the size of items.
2022-09-22 18:18:59 +02:00
attila
d05333b61d Resave all projects 2022-09-22 07:50:18 +00:00
attila
c97864d7f3 Remove AudioIODeviceCallback::audioDeviceIOCallback 2022-09-22 07:50:18 +00:00
attila
f075de78fa AudioIODeviceCallback, AudioBuffer, AudioFormatReader: Use const T* const* for multi-channel data 2022-09-22 07:50:18 +00:00
Fabian Renn-Giles
37d57810f2 CoreAudio: Modernised code interacting with CoreAudio audio objects 2022-09-21 18:11:57 +00:00
hogliux
c07a77a8f9 AAX: Inform host of more parameter attributes when audio processor calls updateHostDisplay 2022-09-21 12:03:20 +02:00
attila
d564e49312 TextEditor: Change caret positioning when clicking before text and between lines
This commit fixes an issue when using large lineSpacing, where the caret
would jump to the end of the previous line when clicking between lines.
With the new behaviour the line spacing is considered to belong to the
previous line.

The commit also changes the behaviour observed when clicking in the
empty space before the first line. Until now the caret would jump into
the first character position. Now it behaves as if the space before the
first line would belong to the first line.
2022-09-15 12:30:40 +02:00
reuk
886ee724de
Projucer: Use correct paths to LV2 manifest helper source 2022-09-14 19:42:07 +01:00
reuk
77f5da93ac
AU Client: Fix build problem when PreferredChannelConfigurations enabled 2022-09-14 16:16:26 +01:00
hogliux
9f803fe88b WASAPI: Search for the maximum number of channels on a WASAPI device instead of relying on default 2022-09-14 14:17:40 +02:00
attila
6da1357fde Slider: Update PopupDisplay in updateText() 2022-09-13 15:20:57 +02:00
attila
bfe163cdad MemoryOutputStream: Fix preallocating overly large buffer 2022-09-13 15:20:57 +02:00
reuk
c51bfd7429
Unity Client: Avoid returning pointer to stack memory 2022-09-12 16:14:57 +01:00
reuk
436150b221
CMake: Avoid adding target for LV2 manifest helper unless specifically required 2022-09-12 16:14:57 +01:00
reuk
ec8cd0e48b
Projucer: Fix LV2 manifest helper path in makefile exporter 2022-09-12 16:14:57 +01:00
reuk
65f1a76614
Tidy up parameter pack expansions 2022-09-12 16:14:57 +01:00
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]] 2022-09-12 16:14:57 +01:00
reuk
045214c986
Build: Allow building with llvm-mingw headers 2022-09-12 16:14:57 +01:00
reuk
7391d18b8e
Optional: Implement in terms of std::optional 2022-09-12 16:14:57 +01:00
reuk
b3a4d54a72
Build: Update the minimum C++ standard to C++17 2022-09-12 16:14:57 +01:00
reuk
e9e39de069
AU: Avoid forming references to variable-size structs MIDIEventList and MIDIPacketList 2022-09-12 16:14:56 +01:00
reuk
f8e91d4003
AU: Replace CoreAudioUtilityClasses with files from new SDK 2022-09-12 16:14:56 +01:00
attila
c0f31aa12a CoreGraphics: fillAll() fills a larger area to avoid alpha blended edges
Alternatively we could disable antialiasing before the fill operation
but this could cause neighbouring Components to overlap on the screen
even if their coordinates don't.
2022-09-12 15:39:05 +02:00
Leigh Marble
0816dbbae7 Docs: Correct a reference to a non-existent method 2022-09-08 12:52:16 +01:00
attila
372290d352 FlacAudioFormat: Use FLAC version 1.3.4
This commit replaces the contents of the flac directory with the
unchanged contents of the flac_134 directory.
2022-09-06 12:42:29 +00:00
attila
3810252ae2 FLAC: Prepare 1.3.4 lib files for inclusion in the JUCE build 2022-09-06 12:42:29 +00:00
attila
2ba2bc9677 FLAC: Add library source files for version 1.3.4 2022-09-06 12:42:29 +00:00
Tom Poole
c4dd405b16 macOS: Fix repaint lagging in Studio One 5 2022-09-05 16:34:01 +01:00
reuk
86ad2a77a0
FileTreeComponent: Avoid blocking the main thread when selecting items while scanning is in progress 2022-09-01 15:44:27 +01:00
reuk
21c214aec8
DirectoryContentsList: Start thread before attempting to scan files
This fixes an issue where opening a FileTreeComponent could cause the UI
to hang. The call to subcontentsList->isStillLoading() in
FileListTreeItem::selectFile() would always return true because the
file-scanner TimeSliceThread wasn't started until the selectFile() call
finished.
2022-09-01 15:44:27 +01:00
reuk
a1bb7aeead
ListBox: Avoid calling updateContent in contructor 2022-09-01 15:44:27 +01:00
reuk
b324a50e82
BailOutChecker: Add checks after callbacks in Slider and ComboBox
Co-authored-by: Roland Rabien <figbug@gmail.com>
2022-09-01 15:44:27 +01:00
reuk
1975bb7479
Projucer: Update default Android SDK, adjust CMake flag specification 2022-09-01 15:44:27 +01:00
reuk
72f6e84ca4
CMake: Add JUCE_PLUGIN_ARTEFACT_FILE property for Standalone plug-in targets 2022-09-01 15:44:26 +01:00
reuk
5a6c8b1d0a
Linux Fonts: Improve default selection mechanism 2022-09-01 15:44:26 +01:00
reuk
98d81bf87a
VST3 Client: Allow channel size mismatches on inactive buses
Previously, the bus layout was considered invalid if the host provided
an unexpected number of channels on a disabled bus. Specifically,
Acoustica 7 would prepare sidechain input buses with a non-zero number
of channels, but provide a zero-channel bus during processing.

Given that the plug-in doesn't attempt to read from disabled buses, it
should be safe to process as normal in this scenario.
2022-09-01 15:44:26 +01:00
reuk
6feeb7dcdd
VST3 Host: Avoid updating bus layout and activation of activated plug-ins
According to the VST3 spec, activateBus and setBusArrangements shall not
be called when a plugin is in the 'activated' state.

Previously, if prepareToPlay was called twice in a row on a hosted VST3
plugin, during the second call the plug-in would already be activated,
but its bus layout would still be adjusted. Now, we always ensure that
the plugin is inactive before the bus properties are adjusted.
2022-09-01 15:44:26 +01:00
reuk
6c3b410e6f
VST3 Client: When emulating MIDI CCs with parameters, generate a MIDI event for each parameter event
Based on a similar patch in the Surge-XT fork of JUCE.

Co-authored-by: Paul Walker <paul@pwjw.com>
2022-09-01 15:44:26 +01:00
reuk
b663c36c97
AU Host: Refactor PositionInfo usage
This avoids repeating the 'fallback' values in the case that the
AudioPlayHead or PositionInfo is not available.

As a side-effect of this change, when an AudioPlayHead is available but
does not supply a valid BPM value, a fallback of 120 will be used,
instead of 0. This fixes an issue where the Microtonic sequencer failed
to play in the AudioPluginHost.
2022-09-01 15:44:26 +01:00
reuk
d28815601a
GenericInterpolator: Refactor to avoid repetition
Also fixes an issue in which `numInputSamplesAvailable` was assigned
instead of `exceeded`, Github issue #1114.

Co-authored-by: Tatsuya Shiozawa <shio.tatsu99@gmail.com>
2022-09-01 15:44:26 +01:00
reuk
34341bc597
APVTS: Avoid calling null function when unspecified 2022-09-01 15:44:26 +01:00
reuk
8ec8e36f5c OpenGLContext: Swap buffers on the main thread
This change fixes an issue where opening multiple OpenGLContexts on
certain versions of macOS (observed on 10.13) could cause a deadlock.

The issue can be reproduced by:
- Attaching an OpenGL context to the AudioPluginDemo editor
- Opening multiple copies of the editor simultaneously in a plugin host.
  I tested with Live 10.

I also observed the issue in a standalone app that opened new windows
containing OpenGLContexts on a timer.
2022-08-31 17:42:48 +01:00
reuk
322aa64459 OpenGLContext: Share CVDisplayLinks with NSViewComponentPeer 2022-08-31 17:42:47 +01:00
reuk
20584cf201 NSViewComponentPeer: Fix bug where OpenGLViews would fail to display after window deminiaturization
This bug was introduced in 869760cb2a
2022-08-31 17:42:47 +01:00
reuk
bc177c2252 NSViewComponentPeer: Share display links between all windows 2022-08-31 17:42:47 +01:00