Fix: Build error with Audaspace turned off
This commit is contained in:
@@ -789,11 +789,19 @@ void BKE_sound_update_scene_sound(void *handle, bSound *sound)
|
||||
AUD_SequenceEntry_setSound(handle, sound->playback_handle);
|
||||
}
|
||||
|
||||
#endif /* WITH_AUDASPACE */
|
||||
|
||||
void BKE_sound_update_sequence_handle(void *handle, void *sound_handle)
|
||||
{
|
||||
#ifdef WITH_AUDASPACE
|
||||
AUD_SequenceEntry_setSound(handle, sound_handle);
|
||||
#else
|
||||
UNUSED_VARS(handle, sound_handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef WITH_AUDASPACE
|
||||
|
||||
void BKE_sound_set_cfra(int cfra)
|
||||
{
|
||||
sound_cfra = cfra;
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
#include "BKE_scene.h"
|
||||
#include "BKE_sound.h"
|
||||
|
||||
#include "AUD_Sound.h"
|
||||
#ifdef WITH_AUDASPACE
|
||||
# include "AUD_Sound.h"
|
||||
#endif
|
||||
|
||||
#include "SEQ_sound.h"
|
||||
#include "SEQ_time.h"
|
||||
@@ -267,6 +269,7 @@ void *SEQ_sound_equalizermodifier_recreator(struct Sequence *seq,
|
||||
struct SequenceModifierData *smd,
|
||||
void *sound)
|
||||
{
|
||||
#ifdef WITH_AUDASPACE
|
||||
UNUSED_VARS(seq);
|
||||
|
||||
SoundEqualizerModifierData *semd = (SoundEqualizerModifierData *)smd;
|
||||
@@ -319,6 +322,10 @@ void *SEQ_sound_equalizermodifier_recreator(struct Sequence *seq,
|
||||
MEM_freeN(buf);
|
||||
|
||||
return equ;
|
||||
#else
|
||||
UNUSED_VARS(seq, smd, sound);
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
const struct SoundModifierWorkerInfo *SEQ_sound_modifier_worker_info_get(int type)
|
||||
|
||||
Reference in New Issue
Block a user