You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +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:
@@ -106,7 +106,7 @@ float OGGPacketSequence::get_length() const {
|
||||
return granule_pos / sampling_rate;
|
||||
}
|
||||
|
||||
Ref<OGGPacketSequencePlayback> OGGPacketSequence::instance_playback() {
|
||||
Ref<OGGPacketSequencePlayback> OGGPacketSequence::instantiate_playback() {
|
||||
Ref<OGGPacketSequencePlayback> playback;
|
||||
playback.instantiate();
|
||||
playback->ogg_packet_sequence = Ref<OGGPacketSequence>(this);
|
||||
|
||||
Reference in New Issue
Block a user