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 IAudioTrack[] GetTracks();
|
||||||
|
|
||||||
|
internal int Count() => GetTracks().Length;
|
||||||
|
|
||||||
// Index is a non-negative monotonically increasing number of times
|
// Index is a non-negative monotonically increasing number of times
|
||||||
// this ISelectableTrack has been played for this Jester on this day.
|
// this ISelectableTrack has been played for this Jester on this day.
|
||||||
// A group of tracks can use this index to rotate tracks sequentially.
|
// A group of tracks can use this index to rotate tracks sequentially.
|
||||||
|
|
@ -588,6 +590,8 @@ namespace MuzikaGromche
|
||||||
|
|
||||||
IAudioTrack[] ISelectableTrack.GetTracks() => [this];
|
IAudioTrack[] ISelectableTrack.GetTracks() => [this];
|
||||||
|
|
||||||
|
int ISelectableTrack.Count() => 1;
|
||||||
|
|
||||||
IAudioTrack ISelectableTrack.SelectTrack(int index) => this;
|
IAudioTrack ISelectableTrack.SelectTrack(int index) => this;
|
||||||
|
|
||||||
void ISelectableTrack.Debug()
|
void ISelectableTrack.Debug()
|
||||||
|
|
@ -612,6 +616,8 @@ namespace MuzikaGromche
|
||||||
|
|
||||||
IAudioTrack[] ISelectableTrack.GetTracks() => Tracks;
|
IAudioTrack[] ISelectableTrack.GetTracks() => Tracks;
|
||||||
|
|
||||||
|
int ISelectableTrack.Count() => Tracks.Length;
|
||||||
|
|
||||||
IAudioTrack ISelectableTrack.SelectTrack(int index)
|
IAudioTrack ISelectableTrack.SelectTrack(int index)
|
||||||
{
|
{
|
||||||
if (Tracks.Length == 0)
|
if (Tracks.Length == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue