예제 #1
0
 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
예제 #2
0
파일: movie.py 프로젝트: xtengf/Mikrokosmos
 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
예제 #3
0
 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