-
Notifications
You must be signed in to change notification settings - Fork 2
Songs
Bluemi edited this page Mar 29, 2021
·
2 revisions
song_id
- title
- path
- total_duration (optional)
Non-optional attributes must be present when creating a new song. The optional attribute total_duration
is not required directly. This is done to prevent long wait times, when importing many songs.
First approach would be to compute the duration when a song is played. This can be improved by utilizing a new thread for this task.
The song_id
attribute is an integer, starting with 0 for the first song and simply counting upwards for every new song. If a song is deleted, its id will not be reassigned.
All songs are stored in the song_buffer
. You can search for songs by id
or path
.