From 09784b20ca1894a0b1e2376b2b07e938b07eb966 Mon Sep 17 00:00:00 2001 From: aidewoode Date: Wed, 9 Aug 2023 13:47:39 +0800 Subject: [PATCH] Fix typo --- lib/wahwah/riff_tag.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wahwah/riff_tag.rb b/lib/wahwah/riff_tag.rb index 074b1f2..70543a4 100644 --- a/lib/wahwah/riff_tag.rb +++ b/lib/wahwah/riff_tag.rb @@ -97,8 +97,8 @@ def parse_fmt_chunk(chunk) @bitrate = @sample_rate * @channel * @bit_depth / 1000 # There is a rare situation where the data chunk is not included in the top RIFF chunk. - # In this case, the duration can be got from the data chunk, some player event cannot play the file. - # So try to estimate the duration from the bitrate. + # In this case, the duration can not be got from the data chunk, some player even cannot play the file. + # So try to estimate the duration from the file size and bitrate. # This may be inaccurate, but at least can get approximate duration. @duration = (@file_size * 8) / (@bitrate * 1000).to_f if @duration.nil? end