Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

int javazoom::jl::decoder::Header::max_number_of_frames ( int  streamsize  )  [inline]

Returns the maximum number of frames in the stream.

Parameters:
streamsize 
Returns:
number of frames

Definition at line 517 of file Header.java.

Referenced by total_ms().

      {
            if (h_vbr == true) return h_vbr_frames;
            else
            {
                  if ((framesize + 4 - h_padding_bit) == 0) return 0;
                  else return(streamsize / (framesize + 4 - h_padding_bit));
            }
      }


Generated by  Doxygen 1.6.0   Back to index