Exemplo n.º 1
0
 def __init__(self, *argc, **argv):
     self.audio = aud.Wave(self,
                           mrc.Ref('data'),
                           channels=mrc.Ref('channels'),
                           sample_rate=mrc.Ref('sample_rate'),
                           format_type=int,
                           field_size=mrc.Ref('sample_width'),
                           signedness=mrc.Ref('sample_signedness'),
                           endian='big')
     super().__init__(*argc, **argv)
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.wave = aud.Wave(self,
                          mrc.Ref('raw_data'),
                          channels=1,
                          sample_rate=SAMPLE_RATE,
                          format_type=int,
                          field_size=1,
                          signedness='unsigned',
                          endian=None)
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     self.audio = aud.Wave(self,
                           mrc.Ref('audio_chunk.data'),
                           channels=1,
                           sample_rate=mrc.Ref('audio_chunk.sample_rate'),
                           format_type=int,
                           field_size=mrc.Ref('audio_chunk.sample_width'),
                           signedness=mrc.Ref('audio_chunk.signedness'),
                           endian='little')
     super().__init__(*args, **kwargs)
Exemplo n.º 4
0
 def __init__(self, *argc, **argv):
     self.audio = aud.Wave(self, mrc.Ref('data'), mrc.Ref('channels'),
                           mrc.Ref('sample_rate'), int,
                           mrc.Ref('sample_width'),
                           mrc.Ref('sample_signedness'), 'big')
     super().__init__(*argc, **argv)