forked from nikita/muzika-gromche
Add tracks count getter to ISelectableTrack
This commit is contained in:
parent
702eb9fccd
commit
dfefc06abf
|
|
@ -345,6 +345,8 @@ namespace MuzikaGromche
|
|||
|
||||
internal IAudioTrack[] GetTracks();
|
||||
|
||||
internal int Count() => GetTracks().Length;
|
||||
|
||||
// Index is a non-negative monotonically increasing number of times
|
||||
// this ISelectableTrack has been played for this Jester on this day.
|
||||
// A group of tracks can use this index to rotate tracks sequentially.
|
||||
|
|
@ -588,6 +590,8 @@ namespace MuzikaGromche
|
|||
|
||||
IAudioTrack[] ISelectableTrack.GetTracks() => [this];
|
||||
|
||||
int ISelectableTrack.Count() => 1;
|
||||
|
||||
IAudioTrack ISelectableTrack.SelectTrack(int index) => this;
|
||||
|
||||
void ISelectableTrack.Debug()
|
||||
|
|
@ -612,6 +616,8 @@ namespace MuzikaGromche
|
|||
|
||||
IAudioTrack[] ISelectableTrack.GetTracks() => Tracks;
|
||||
|
||||
int ISelectableTrack.Count() => Tracks.Length;
|
||||
|
||||
IAudioTrack ISelectableTrack.SelectTrack(int index)
|
||||
{
|
||||
if (Tracks.Length == 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue