Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Get samples per frame.

:param mpeg_version: Version of the mpeg, as returned by 
    :func:`get_mpeg_version`
:type mpeg_version: string

:param layer: Layer of the MPEG as returned by :func:`get_layer`.
:type layer: string

:rtype: int(more...)

        def get_samples_per_frame(mpeg_version, layer):
    """Get samples per frame.
    
    :param mpeg_version: Version of the mpeg, as returned by 
        :func:`get_mpeg_version`
    :type mpeg_version: string
    
    :param layer: Layer of the MPEG as returned by :func:`get_layer`.
    :type layer: string
    
    :rtype: int
    :return: Samples per frame.
    
    :raise mpeg1audio.MPEGAudioHeaderException: Raised if samples per frame
        cannot be determined.
    
    """
    try:
        return SAMPLES_PER_FRAME[mpeg_version][layer]
    except (IndexError):
        raise MPEGAudioHeaderException(
                            'Samples per frame cannot be determined.')
        


src/m/p/mpeg1audio-0.5.2/src/mpeg1audio/__init__.py   mpeg1audio(Download)
 
        # Non-header parseable information
        self.samples_per_frame = headers.get_samples_per_frame(self.version,
                                                               self.layer)
        self.size = headers.get_frame_size(self.version, self.layer,

src/m/p/mpeg1audio-HEAD/src/mpeg1audio/__init__.py   mpeg1audio(Download)
 
        # Non-header parseable information
        self.samples_per_frame = headers.get_samples_per_frame(self.version,
                                                               self.layer)
        self.size = headers.get_frame_size(self.version, self.layer,