Changeset 5361

Show
Ignore:
Timestamp:
10/10/07 17:21:29 (6 years ago)
Author:
jgaeddert
Message:

Added a sine wave to test the audio playback stuff

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/components/rc2007_gui/WorkModules.py

    r5360 r5361  
    168168    def CVSDDecode(self, data): 
    169169        # data is real char 
    170         # CVSD decode 
     170        # CVSD decode (call class method) 
    171171        left_channel = [] 
    172172        right_channel = left_channel 
     
    213213         
    214214    def Process(self): 
     215        # temporary generation of sine wave to test playAudio 
     216        l = [] 
     217        l = [math.sine(.1*x) for x in range(1028)]  
     218        r = l   
     219 
    215220        while self.is_running: 
     221 
     222            # temporary test of playAudio 
     223            self.playAudio(l,r) 
     224        
     225 
    216226            self.data_signal.wait()  # wait for data to be aded to the  
    217227                                     # buffer in self.AddVoiceData()