mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Implement IAudioSource.Duration property and IAudioDecoderSettings.Open extension method.
This commit is contained in:
@@ -1149,7 +1149,9 @@ namespace CUETools.Ripper.SCSI
|
||||
return buff.Length;
|
||||
}
|
||||
|
||||
public long Length
|
||||
public TimeSpan Duration => TimeSpan.FromSeconds((double)Length / PCM.SampleRate);
|
||||
|
||||
public long Length
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user