Ejemplo n.º 1
0
 def createDescription(self):
     info = ["layer %s" % self["layer"].display]
     bit_rate = self.getBitRate()
     if bit_rate:
         info.append("%s/sec" % humanBitSize(bit_rate))
     sampling_rate = self.getSampleRate()
     if sampling_rate:
         info.append(humanFrequency(sampling_rate))
     return "MPEG-%s %s" % (self["version"].display, ", ".join(info))
Ejemplo n.º 2
0
 def createDescription(self):
     info = ["layer %s" % self["layer"].display]
     bit_rate = self.getBitRate()
     if bit_rate:
         info.append("%s/sec" % humanBitSize(bit_rate))
     sampling_rate = self.getSampleRate()
     if sampling_rate:
         info.append(humanFrequency(sampling_rate))
     return "MPEG-%s %s" % (self["version"].display, ", ".join(info))
Ejemplo n.º 3
0
def bit2hertz(field):
    return humanFrequency(5512.5 * (2 ** field.value))
Ejemplo n.º 4
0
def bit2hertz(field):
    return humanFrequency(5512.5 * (2**field.value))