#8: Added functionality to cache more than one song
All checks were successful
Build / build (push) Successful in 1m25s
All checks were successful
Build / build (push) Successful in 1m25s
This commit is contained in:
@@ -168,7 +168,7 @@ func play_song_object(song_object_no: int) -> void:
|
||||
if audio_player.is_playing():
|
||||
audio_player.stop()
|
||||
await get_tree().create_timer(0.5).timeout
|
||||
audio_player.stream = Settings.song_object_array[song_object_no].song
|
||||
audio_player.stream = Playlist.get_song(song_object_no)
|
||||
sound_player.stop()
|
||||
audio_player.play()
|
||||
song_finished = false
|
||||
@@ -176,13 +176,13 @@ func play_song_object(song_object_no: int) -> void:
|
||||
stream = audio_player.stream
|
||||
progress_slider.max_value = round(stream.get_length())
|
||||
progress_slider.tick_count = round(stream.get_length() / 60)
|
||||
Settings.currently_playing_song = song_object_no
|
||||
Settings.unset_is_playing()
|
||||
Playlist.set_currently_playing_song(song_object_no)
|
||||
Playlist.unset_is_playing()
|
||||
if !Settings.hide_next_track:
|
||||
print("Show answer now!!")
|
||||
Settings.song_object_array[song_object_no].is_answered = true
|
||||
Settings.song_object_array[song_object_no].has_played = true
|
||||
Settings.song_object_array[song_object_no].is_playing = true
|
||||
Playlist.song_is_answered(song_object_no)
|
||||
Playlist.song_has_played(song_object_no)
|
||||
Playlist.song_is_playing(song_object_no)
|
||||
update_song_list.emit()
|
||||
|
||||
func get_sound_test_song() -> void:
|
||||
|
||||
Reference in New Issue
Block a user