Fix: Build error with Audaspace turned on
To reproduce build error, set `WITH_AUDASPACE` to `ON` in `blender_lite.cmake` and build using `make lite`. The problem is that the function `AUD_Sound_equalize` is declared in `blender/extern/audaspace/bindings/C/AUD_Sound.h` within `WITH_CONVOLUTION` and not `WITH_AUDASPACE`. Pull Request: https://projects.blender.org/blender/blender/pulls/111994
This commit is contained in:
committed by
Habib Gahbiche
parent
fdda220a64
commit
f0acbd151d
@@ -28,7 +28,7 @@
|
||||
#include "BKE_scene.h"
|
||||
#include "BKE_sound.h"
|
||||
|
||||
#ifdef WITH_AUDASPACE
|
||||
#ifdef WITH_CONVOLUTION
|
||||
# include "AUD_Sound.h"
|
||||
#endif
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
const SoundModifierWorkerInfo workersSoundModifiers[] = {
|
||||
{seqModifierType_SoundEqualizer, SEQ_sound_equalizermodifier_recreator}, {0, nullptr}};
|
||||
|
||||
#ifdef WITH_AUDASPACE
|
||||
#ifdef WITH_CONVOLUTION
|
||||
static bool sequencer_refresh_sound_length_recursive(Main *bmain, Scene *scene, ListBase *seqbase)
|
||||
{
|
||||
bool changed = false;
|
||||
@@ -79,7 +79,7 @@ static bool sequencer_refresh_sound_length_recursive(Main *bmain, Scene *scene,
|
||||
|
||||
void SEQ_sound_update_length(Main *bmain, Scene *scene)
|
||||
{
|
||||
#ifdef WITH_AUDASPACE
|
||||
#ifdef WITH_CONVOLUTION
|
||||
if (scene->ed) {
|
||||
sequencer_refresh_sound_length_recursive(bmain, scene, &scene->ed->seqbase);
|
||||
}
|
||||
@@ -265,7 +265,7 @@ void SEQ_sound_equalizermodifier_copy_data(SequenceModifierData *target, Sequenc
|
||||
|
||||
void *SEQ_sound_equalizermodifier_recreator(Sequence *seq, SequenceModifierData *smd, void *sound)
|
||||
{
|
||||
#ifdef WITH_AUDASPACE
|
||||
#ifdef WITH_CONVOLUTION
|
||||
UNUSED_VARS(seq);
|
||||
|
||||
SoundEqualizerModifierData *semd = (SoundEqualizerModifierData *)smd;
|
||||
|
||||
Reference in New Issue
Block a user