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 emphasis of audio.

:param bits: Emphasis bits in MPEG header.
:type bits: int

:return: Returns emphasis, one of the following: ``"none", "50/15 ms", 
    "reserved", "CCIT J.17"``
:rtype: string 

:raise mpeg1audio.MPEGAudioHeaderException: Raised when emphasis cannot be(more...)

        def get_emphasis(bits):
    """Get emphasis of audio.
    
    :param bits: Emphasis bits in MPEG header.
    :type bits: int
    
    :return: Returns emphasis, one of the following: ``"none", "50/15 ms", 
        "reserved", "CCIT J.17"``
    :rtype: string 
    
    :raise mpeg1audio.MPEGAudioHeaderException: Raised when emphasis cannot be
        determined.
    
    """


    try:
        return EMPHASES[bits]
    except (TypeError, IndexError):
        raise MPEGAudioHeaderException('Emphasis cannot be determined.')
        


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

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