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 channel mode extension.

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

:param bits: Extension mode bits in MPEG header.
:type bits: int

:rtype: string (more...)

        def get_channel_mode_ext(layer, bits):
    """Get channel mode extension.
    
    :param layer: Layer of the MPEG as returned by 
        :func:`get_layer`.
    :type layer: string
    
    :param bits: Extension mode bits in MPEG header.
    :type bits: int
    
    :rtype: string 
    :return: Channel extension mode. One of the following values: ``"4-31", 
        "8-31", "12-31", "16-31", "", "IS", "MS", "IS+MS"``
       
    :raise mpeg1audio.MPEGAudioHeaderException: Raised if channel mode extension
        cannot be determined.
        
    """

    try:
        return CHANNEL_MODE_EXT[layer][bits]
    except (KeyError, TypeError, IndexError):
        raise MPEGAudioHeaderException(
                                'Channel mode ext. cannot be determined.')
        


src/m/p/mpeg1audio-0.5.2/src/mpeg1audio/__init__.py   mpeg1audio(Download)
        self.channel_mode = headers.get_channel_mode(mode_bits)
        self.channel_mode_extension = \
            headers.get_channel_mode_ext(self.layer, mode_extension_bits)
        self.emphasis = headers.get_emphasis(emphasis_bits)
 

src/m/p/mpeg1audio-HEAD/src/mpeg1audio/__init__.py   mpeg1audio(Download)
        self.channel_mode = headers.get_channel_mode(mode_bits)
        self.channel_mode_extension = \
            headers.get_channel_mode_ext(self.layer, mode_extension_bits)
        self.emphasis = headers.get_emphasis(emphasis_bits)