Permalink
Browse files

adding data length

  • Loading branch information...
1 parent 1852cad commit 08af22114b736790de795b55d5298fe14632fdf2 @tenderlove committed Aug 2, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/icanhasaudio/mpeg/encoder.rb
View
1 lib/icanhasaudio/mpeg/encoder.rb
@@ -244,6 +244,7 @@ def parse_wave_header(file)
{
:num_channels => channels,
:in_samplerate => samples_per_sec,
+ :bytes_in_seconds => data_length,
:milliseconds => (data_length/2)/(samples_per_sec/1000)/2,
:num_samples => data_length / (channels*((bits_per_sample+7)/8)),
:bit_width => bits_per_sample,

0 comments on commit 08af221

Please sign in to comment.