Remove last editor code dependencies in template build
SConstruct change also makes it possible to outright delete the `editor` folder in a `tools=no` build, which we use in CI to ensure no invalid cross-dependencies are added.
This commit is contained in:
parent
1ae8b2de38
commit
45ec0e31c3
8 changed files with 23 additions and 13 deletions
|
|
@ -30,6 +30,11 @@
|
|||
|
||||
#include "audio_effect_record.h"
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
// FIXME: This file shouldn't depend on editor stuff.
|
||||
#include "editor/import/resource_importer_wav.h"
|
||||
#endif
|
||||
|
||||
void AudioEffectRecordInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
if (!is_recording) {
|
||||
for (int i = 0; i < p_frame_count; i++) {
|
||||
|
|
@ -250,8 +255,12 @@ Ref<AudioStreamSample> AudioEffectRecord::get_recording() const {
|
|||
Vector<uint8_t> bleft;
|
||||
Vector<uint8_t> bright;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
ResourceImporterWAV::_compress_ima_adpcm(left, bleft);
|
||||
ResourceImporterWAV::_compress_ima_adpcm(right, bright);
|
||||
#else
|
||||
ERR_PRINT("AudioEffectRecord cannot do IMA ADPCM compression at runtime.");
|
||||
#endif
|
||||
|
||||
int dl = bleft.size();
|
||||
dst_data.resize(dl * 2);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
#include "core/io/marshalls.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/os/thread.h"
|
||||
#include "editor/import/resource_importer_wav.h"
|
||||
#include "scene/resources/audio_stream_sample.h"
|
||||
#include "servers/audio/audio_effect.h"
|
||||
#include "servers/audio_server.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue