feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -31,7 +31,6 @@
|
|||
#include "audio_stream_synchronized.h"
|
||||
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "core/string/print_string.h"
|
||||
|
||||
AudioStreamSynchronized::AudioStreamSynchronized() {
|
||||
}
|
||||
|
|
@ -99,6 +98,18 @@ int AudioStreamSynchronized::get_beat_count() const {
|
|||
return max_beats;
|
||||
}
|
||||
|
||||
int AudioStreamSynchronized::get_bar_beats() const {
|
||||
for (int i = 0; i < stream_count; i++) {
|
||||
if (audio_streams[i].is_valid()) {
|
||||
int bar_beats = audio_streams[i]->get_bar_beats();
|
||||
if (bar_beats != 0) {
|
||||
return bar_beats;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool AudioStreamSynchronized::has_loop() const {
|
||||
for (int i = 0; i < stream_count; i++) {
|
||||
if (audio_streams[i].is_valid()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue