Skip to content

Commit

Permalink
Remove ISample.Length
Browse files Browse the repository at this point in the history
This has not been populated for a while and is not used osu! side.
Rather than having an incorrectly zero value, let's remove it for now.
  • Loading branch information
peppy committed Oct 26, 2024
1 parent 451f8b2 commit 9b2d2b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions osu.Framework/Audio/Sample/ISample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ public interface ISample : IAdjustableAudioComponent
/// </summary>
string Name { get; }

/// <summary>
/// The length in milliseconds of this <see cref="ISample"/>.
/// </summary>
double Length { get; }

/// <summary>
/// The number of times this sample (as identified by name) can be played back concurrently.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion osu.Framework/Audio/Sample/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ protected Sample(string name)
Name = name;
}

public double Length { get; protected set; }
public Bindable<int> PlaybackConcurrency { get; } = new Bindable<int>(DEFAULT_CONCURRENCY);

internal Action<Sample> OnPlay;
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework/Graphics/Audio/DrawableSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public SampleChannel GetChannel()

string ISample.Name => sample.Name;

public double Length => sample.Length;

public Bindable<int> PlaybackConcurrency { get; } = new Bindable<int>(Sample.DEFAULT_CONCURRENCY);

private IAudioMixer? mixer;
Expand Down

0 comments on commit 9b2d2b2

Please sign in to comment.