def set_mp3header(self, isstereo, mp3samplerate, mp3sampleskip): if not self.mp3: self.mp3 = MP3Storage() self.mp3.set_stereo(isstereo) self.mp3.set_sample_rate(mp3samplerate) self.mp3.set_initial_skip(mp3sampleskip) return
def set_mp3header(self, isstereo, mp3samplerate, mp3sampleskip): if not self.mp3: self.mp3 = MP3Storage() self.mp3.set_stereo(isstereo) self.mp3.set_sample_rate(mp3samplerate) self.mp3.set_initial_skip(mp3sampleskip) print >> stderr, 'MP3: stereo=%s, samplerate=%d, initialskip=%d' % ( isstereo, mp3samplerate, mp3sampleskip) return
def reg_mp3blocks(self, fp, length=None, nsamples=None, seeksamples=None): if not self.mp3: self.mp3 = MP3Storage() MP3Reader(self.mp3).read_mp3file(fp, length, nsamples, seeksamples) return