Reworked ISoundFormat.LengthInSeconds implementations
This commit is contained in:
committed by
Matthias Mailänder
parent
631297417c
commit
87b92b53a4
@@ -40,7 +40,7 @@ namespace OpenRA.Mods.Cnc.AudioLoaders
|
||||
{
|
||||
public int SampleBits => 8;
|
||||
public int Channels => 1;
|
||||
public int SampleRate { get; private set; }
|
||||
public int SampleRate { get; }
|
||||
public float LengthInSeconds => (float)totalSamples / SampleRate;
|
||||
public Stream GetPCMInputStream() { return new VocStream(new VocFormat(this)); }
|
||||
public void Dispose() { stream.Dispose(); }
|
||||
|
||||
Reference in New Issue
Block a user