Skip to content

Commit

Permalink
Rename a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hwsmm committed Sep 21, 2024
1 parent 6ae2d8a commit eefb825
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private void prepareArray(long wanted)

internal void PrepareStream(long byteLength = 3 * 60 * 44100 * 2 * 4)
{
if (disposedValue)
if (isDisposed)
return;

if (AudioData == null)
Expand All @@ -88,7 +88,7 @@ internal void PrepareStream(long byteLength = 3 * 60 * 44100 * 2 * 4)

internal void PutSamplesInStream(byte[] next, int length)
{
if (disposedValue)
if (isDisposed)
return;

if (AudioData == null)
Expand All @@ -108,7 +108,7 @@ internal void PutSamplesInStream(byte[] next, int length)

internal void DonePutting()
{
if (disposedValue)
if (isDisposed)
return;

// Saved seek was over data length
Expand Down Expand Up @@ -258,14 +258,14 @@ public virtual void Seek(double seek)
}
}

private bool disposedValue;
private volatile bool isDisposed;

protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
if (!isDisposed)
{
AudioData = null;
disposedValue = true;
isDisposed = true;
}
}

Expand Down

0 comments on commit eefb825

Please sign in to comment.