~killerkiwi2005/earcandy/0.4

« back to all changes in this revision

Viewing changes to pulseaudio/PulseAudio.py

  • Committer: taylor
  • Date: 2009-05-21 19:43:15 UTC
  • Revision ID: taylor@jason-laptop-20090521194315-gpqz6ed5dtcu6w3i
Fix timestamp break after midnight

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
 
162
162
            pa_stream_connect_record(pa_stream, str(monitor_index), attr, 10752) 
163
163
 
164
 
 
165
164
##### EXPERMINTATL ENDS ###########################################################
166
165
 
167
166
                    
217
216
    def pa_sink_input_info_cb(self, context, struct, index, user_data):
218
217
        if struct and user_data:
219
218
 
220
 
            #print struct.contents.name, struct.contents.client, struct.contents.monitor_index
221
 
            self.pa_create_monitor_stream_for_sink_input(int(struct.contents.index), self.sinks[struct.contents.sink], struct.contents.name)
 
219
            if float(struct.contents.sink) in self.sinks:
 
220
                self.pa_create_monitor_stream_for_sink_input(int(struct.contents.index), self.sinks[float(struct.contents.sink)], struct.contents.name)
222
221
 
223
222
            # Get volume level
224
223
            volume = []
268
267
            # Get volume level
269
268
 
270
269
            # Update sink to monitor links
271
 
            self.sinks[struct.contents.index] = struct.contents.monitor_source
 
270
            self.sinks[ float(struct.contents.index) ] = struct.contents.monitor_source
272
271
            self.__print("pa_sink_info_cb")
273
272
            gobject.idle_add(self.volume_change_cb, int(pa_cvolume_avg(struct.contents.volume) / PA_VOLUME_CONVERSION_FACTOR))
274
273