You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Implement BPM support
Based on #62896, only implements the BPM support part. * Implements BPM support in the AudioStreamOGG/MP3 importers. * Can select BPM/Bar Size and total beats in a song file, as well as edit looping points. * Looping is now BPM aware * Added a special importer UI for configuring this. * Added a special preview showing the audio waveform as well as the playback position in the resource picker. * Renamed `AudioStream::instance` to `instantiate` for correctness.
This commit is contained in:
@@ -104,6 +104,7 @@
|
||||
#include "editor/editor_translation_parser.h"
|
||||
#include "editor/export_template_manager.h"
|
||||
#include "editor/filesystem_dock.h"
|
||||
#include "editor/import/audio_stream_import_settings.h"
|
||||
#include "editor/import/dynamic_font_import_settings.h"
|
||||
#include "editor/import/editor_import_collada.h"
|
||||
#include "editor/import/resource_importer_bitmask.h"
|
||||
@@ -131,7 +132,6 @@
|
||||
#include "editor/plugins/animation_state_machine_editor.h"
|
||||
#include "editor/plugins/animation_tree_editor_plugin.h"
|
||||
#include "editor/plugins/asset_library_editor_plugin.h"
|
||||
#include "editor/plugins/audio_stream_editor_plugin.h"
|
||||
#include "editor/plugins/audio_stream_randomizer_editor_plugin.h"
|
||||
#include "editor/plugins/bit_map_editor_plugin.h"
|
||||
#include "editor/plugins/bone_map_editor_plugin.h"
|
||||
@@ -5899,6 +5899,8 @@ EditorNode::EditorNode() {
|
||||
|
||||
RenderingServer::get_singleton()->set_debug_generate_wireframes(true);
|
||||
|
||||
AudioServer::get_singleton()->set_enable_tagging_used_audio_streams(true);
|
||||
|
||||
// No navigation server by default if in editor.
|
||||
NavigationServer3D::get_singleton()->set_active(false);
|
||||
|
||||
@@ -6443,6 +6445,9 @@ EditorNode::EditorNode() {
|
||||
scene_import_settings = memnew(SceneImportSettings);
|
||||
gui_base->add_child(scene_import_settings);
|
||||
|
||||
audio_stream_import_settings = memnew(AudioStreamImportSettings);
|
||||
gui_base->add_child(audio_stream_import_settings);
|
||||
|
||||
fontdata_import_settings = memnew(DynamicFontImportSettings);
|
||||
gui_base->add_child(fontdata_import_settings);
|
||||
|
||||
@@ -7079,7 +7084,6 @@ EditorNode::EditorNode() {
|
||||
// This list is alphabetized, and plugins that depend on Node2D are in their own section below.
|
||||
add_editor_plugin(memnew(AnimationTreeEditorPlugin));
|
||||
add_editor_plugin(memnew(AudioBusesEditorPlugin(audio_bus_editor)));
|
||||
add_editor_plugin(memnew(AudioStreamEditorPlugin));
|
||||
add_editor_plugin(memnew(AudioStreamRandomizerEditorPlugin));
|
||||
add_editor_plugin(memnew(BitMapEditorPlugin));
|
||||
add_editor_plugin(memnew(BoneMapEditorPlugin));
|
||||
|
||||
Reference in New Issue
Block a user