diff options
author | MaZderMind <git@mazdermind.de> | 2016-01-29 21:13:22 +0100 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-01-29 21:14:24 +0100 |
commit | 4037733853ad2dbb0064d68f7590e0c94f98151e (patch) | |
tree | aec724da68bc4896dddbb78d510c69fa55bf7a8f /voctogui/lib/videodisplay.py | |
parent | 4ddbb55eac513c1863a453a8d21cd6c8dc167661 (diff) |
logarithmic audio display, fixes #28
Diffstat (limited to 'voctogui/lib/videodisplay.py')
-rw-r--r-- | voctogui/lib/videodisplay.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/voctogui/lib/videodisplay.py b/voctogui/lib/videodisplay.py index 61f7919..0280e74 100644 --- a/voctogui/lib/videodisplay.py +++ b/voctogui/lib/videodisplay.py @@ -141,6 +141,7 @@ class VideoDisplay(object): if msg.type != Gst.MessageType.ELEMENT: return - peaks = msg.get_structure().get_value('peak') rms = msg.get_structure().get_value('rms') - self.level_callback(peaks, rms) + peak = msg.get_structure().get_value('peak') + decay = msg.get_structure().get_value('decay') + self.level_callback(rms, peak, decay) |