feat: modules moved and engine moved to submodule

This commit is contained in:
Jan van der Weide 2025-04-12 18:40:44 +02:00
parent dfb5e645cd
commit c33d2130cc
5136 changed files with 225275 additions and 64485 deletions

View file

@ -35,7 +35,14 @@
#include "servers/audio/audio_stream.h"
void AudioStreamPlayer::_notification(int p_what) {
internal->notification(p_what);
if (p_what == NOTIFICATION_ACCESSIBILITY_UPDATE) {
RID ae = get_accessibility_element();
ERR_FAIL_COND(ae.is_null());
DisplayServer::get_singleton()->accessibility_update_set_role(ae, DisplayServer::AccessibilityRole::ROLE_AUDIO);
} else {
internal->notification(p_what);
}
}
void AudioStreamPlayer::set_stream(Ref<AudioStream> p_stream) {

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_STREAM_PLAYER_H
#define AUDIO_STREAM_PLAYER_H
#pragma once
#include "scene/main/node.h"
#include "servers/audio_server.h"
@ -118,5 +117,3 @@ public:
};
VARIANT_ENUM_CAST(AudioStreamPlayer::MixTarget)
#endif // AUDIO_STREAM_PLAYER_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef AUDIO_STREAM_PLAYER_INTERNAL_H
#define AUDIO_STREAM_PLAYER_INTERNAL_H
#pragma once
#include "core/object/ref_counted.h"
#include "core/templates/safe_refcount.h"
@ -113,5 +112,3 @@ public:
AudioStreamPlayerInternal(Node *p_node, const Callable &p_play_callable, const Callable &p_stop_callable, bool p_physical);
};
#endif // AUDIO_STREAM_PLAYER_INTERNAL_H