1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Change AudioStreamPlayer autoplay and GLTFBufferView getters to be const

This commit is contained in:
Aaron Franke
2024-01-06 20:29:43 -06:00
parent 41564aaf77
commit 35c99bbcc1
13 changed files with 243 additions and 16 deletions

View File

@@ -29,6 +29,7 @@
/**************************************************************************/
#include "audio_stream_player.h"
#include "audio_stream_player.compat.inc"
#include "scene/audio/audio_stream_player_internal.h"
#include "servers/audio/audio_stream.h"
@@ -126,7 +127,7 @@ void AudioStreamPlayer::set_autoplay(bool p_enable) {
internal->autoplay = p_enable;
}
bool AudioStreamPlayer::is_autoplay_enabled() {
bool AudioStreamPlayer::is_autoplay_enabled() const {
return internal->autoplay;
}