mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Allow setting looping to existing channels
This commit is contained in:
@ -35,7 +35,18 @@ namespace osu.Game.Skinning
|
||||
this.audio = audio;
|
||||
}
|
||||
|
||||
public bool Looping;
|
||||
private bool looping;
|
||||
|
||||
public bool Looping
|
||||
{
|
||||
get => looping;
|
||||
set
|
||||
{
|
||||
looping = value;
|
||||
|
||||
channels.ForEach(c => c.Looping = looping);
|
||||
}
|
||||
}
|
||||
|
||||
public void Play() => channels?.ForEach(c => c.Play());
|
||||
|
||||
|
Reference in New Issue
Block a user