Skip to content

Commit e80ce08

Browse files
committed
Bela: Drop support
1 parent 8896ae7 commit e80ce08

File tree

8 files changed

+12
-651
lines changed

8 files changed

+12
-651
lines changed

modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ void AudioDeviceManager::createAudioDeviceTypes (OwnedArray<AudioIODeviceType>&
331331
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_ASIO());
332332
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_CoreAudio());
333333
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_iOSAudio());
334-
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_Bela());
335334
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_ALSA());
336335
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_JACK());
337336
addIfNotNull (list, AudioIODeviceType::createAudioIODeviceType_Oboe());

modules/juce_audio_devices/audio_io/juce_AudioIODeviceType.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,6 @@ void AudioIODeviceType::callDeviceChangeListeners()
106106
AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_JACK() { return nullptr; }
107107
#endif
108108

109-
#if JUCE_LINUX && JUCE_BELA
110-
AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_Bela() { return new BelaAudioIODeviceType(); }
111-
#else
112-
AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_Bela() { return nullptr; }
113-
#endif
114-
115109
#if JUCE_ANDROID
116110
AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_Android()
117111
{

modules/juce_audio_devices/audio_io/juce_AudioIODeviceType.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ class JUCE_API AudioIODeviceType
176176
static AudioIODeviceType* createAudioIODeviceType_OpenSLES();
177177
/** Creates an Oboe device type if it's available on this platform, or returns null. */
178178
static AudioIODeviceType* createAudioIODeviceType_Oboe();
179-
/** Creates a Bela device type if it's available on this platform, or returns null. */
180-
static AudioIODeviceType* createAudioIODeviceType_Bela();
181179

182180
#ifndef DOXYGEN
183181
[[deprecated ("You should call the method which takes a WASAPIDeviceMode instead.")]]

modules/juce_audio_devices/juce_audio_devices.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -176,23 +176,23 @@
176176
#include "native/juce_ALSA_linux.cpp"
177177
#endif
178178

179-
#if (JUCE_LINUX && JUCE_BELA)
180-
/* Got an include error here? If so, you've either not got the bela headers
181-
installed, or you've not got your paths set up correctly to find its header
182-
files.
179+
#if JUCE_JACK
180+
/* Got an include error here? If so, you've either not got jack-audio-connection-kit
181+
installed, or you've not got your paths set up correctly to find its header files.
182+
183+
The package you need to install to get JACK support is "libjack-dev".
184+
185+
If you don't have the jack-audio-connection-kit library and don't want to build
186+
JUCE with low latency audio support, just set the JUCE_JACK flag to 0.
183187
*/
184-
#include <Bela.h>
185-
#include <Midi.h>
186-
#include <juce_audio_basics/midi/juce_MidiDataConcatenator.h>
187-
#include "native/juce_Bela_linux.cpp"
188+
#include <jack/jack.h>
189+
#include "native/juce_JackAudio_linux.cpp"
188190
#endif
189191

190192
#undef SIZEOF
191193

192-
#if ! JUCE_BELA
193-
#include <juce_audio_basics/midi/juce_MidiDataConcatenator.h>
194-
#include "native/juce_Midi_linux.cpp"
195-
#endif
194+
#include <juce_audio_basics/midi/juce_MidiDataConcatenator.h>
195+
#include "native/juce_Midi_linux.cpp"
196196

197197
//==============================================================================
198198
#elif JUCE_ANDROID

modules/juce_audio_devices/juce_audio_devices.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,6 @@
127127
#define JUCE_JACK 0
128128
#endif
129129

130-
/** Config: JUCE_BELA
131-
Enables Bela audio devices on Bela boards.
132-
*/
133-
#ifndef JUCE_BELA
134-
#define JUCE_BELA 0
135-
#endif
136-
137130
/** Config: JUCE_USE_ANDROID_OBOE
138131
Enables Oboe devices (Android only).
139132
*/

0 commit comments

Comments
 (0)