Skip to content

Commit

Permalink
WaveReaderの秒数が短くなるのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Jan 23, 2024
1 parent 8436877 commit a1289c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Beutl.Engine/Media/Wave/WaveReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public WaveReader(string file, MediaOptions options)

AudioInfo = new AudioStreamInfo(
CodecName: $"Wave ({_waveFormat.Encoding})",
Duration: new Rational(_reader.Length / _waveFormat.AverageBytesPerSecond),
Duration: new Rational(_reader.Length, _waveFormat.AverageBytesPerSecond),
SampleRate: _waveFormat.SampleRate,
NumChannels: _waveFormat.Channels);
}
Expand Down

0 comments on commit a1289c2

Please sign in to comment.