mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Move server files into their subfolders
This commit is contained in:
parent
d705613db3
commit
3d1c9fd5de
393 changed files with 600 additions and 579 deletions
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "audio_effect_capture.h"
|
||||
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
bool AudioEffectCapture::can_get_buffer(int p_frames) const {
|
||||
return buffer.data_left() >= p_frames;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "audio_effect_chorus.h"
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectChorusInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
int todo = p_frame_count;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
/**************************************************************************/
|
||||
|
||||
#include "audio_effect_compressor.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectCompressorInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
float threshold = Math::db_to_linear(base->threshold);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "audio_effect_delay.h"
|
||||
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectDelayInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
int todo = p_frame_count;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "audio_effect_distortion.h"
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectDistortionInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
const float *src = (const float *)p_src_frames;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "audio_effect_eq.h"
|
||||
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectEQInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
int band_count = bands[0].size();
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
/**************************************************************************/
|
||||
|
||||
#include "audio_effect_filter.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
template <int S>
|
||||
void AudioEffectFilterInstance::_process_filter(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "audio_effect_hard_limiter.h"
|
||||
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectHardLimiterInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
float sample_rate = AudioServer::get_singleton()->get_mix_rate();
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
/**************************************************************************/
|
||||
|
||||
#include "audio_effect_phaser.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectPhaserInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
float sampling_rate = AudioServer::get_singleton()->get_mix_rate();
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "audio_effect_pitch_shift.h"
|
||||
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
/* Thirdparty code, so disable clang-format with Godot style */
|
||||
/* clang-format off */
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
#include "core/os/thread.h"
|
||||
#include "scene/resources/audio_stream_wav.h"
|
||||
#include "servers/audio/audio_effect.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
class AudioEffectRecord;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@
|
|||
/**************************************************************************/
|
||||
|
||||
#include "audio_effect_reverb.h"
|
||||
#include "servers/audio_server.h"
|
||||
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectReverbInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
Reverb &r = reverb[i];
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
/**************************************************************************/
|
||||
|
||||
#include "audio_effect_spectrum_analyzer.h"
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
static void smbFft(float *fftBuffer, long fftFrameSize, long sign)
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "audio_effect_stereo_enhance.h"
|
||||
|
||||
#include "servers/audio_server.h"
|
||||
#include "servers/audio/audio_server.h"
|
||||
|
||||
void AudioEffectStereoEnhanceInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) {
|
||||
float intensity = base->pan_pullout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue