def get_length(self):
        """Get the length of the Sound.

        Return the length of this Sound in seconds.

        :rtype: float
        """
        _mixer_init_check()

        opened, freq, format, channels = Mix_QuerySpec()
        if format == AUDIO_S8 or format == AUDIO_U8:
            mixerbytes = 1
        else:
            mixerbytes = 2
        numsamples = self._chunk.alen / mixerbytes / channels

        return numsamples / float(freq)
dataset/ETHPy150Open los-cocos/cocos/cocos/audio/pygame/mixer.py/Sound.get_length/original