Skip to content

Commit

Permalink
Make AudioComponent IsDisposed public
Browse files Browse the repository at this point in the history
  • Loading branch information
hwsmm committed Oct 25, 2024
1 parent 08e68bd commit ec07a21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions osu.Framework/Audio/AudioComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ public void Update()

#region IDisposable Support

protected volatile bool IsDisposed;
public bool IsDisposed => isDisposed;

private volatile bool isDisposed;

public void Dispose()
{
Expand All @@ -122,7 +124,7 @@ public void Dispose()

protected virtual void Dispose(bool disposing)
{
IsDisposed = true;
isDisposed = true;
}

#endregion
Expand Down

0 comments on commit ec07a21

Please sign in to comment.