Example #1
0
    def convert(self, format="flac"):

        target = getLossLessAudio(self.basename + "." + format)

        # avoid un-necessary work
        if self.format == target.format :
            warnmsg("%s is already in %s format." % (self.filename, self.format) )
            return

        self.check_decodable()
        target.check_encodable()

        shnconv(self.filename, format)

        self._copy_taginfo(target)
Example #2
0
 def convert2wav(self):
     warnmsg("%s is already in %s format." % (self.filename, self.format) )