diff options
| author | tassaron | 2017-07-11 06:06:22 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-11 06:06:22 -0400 |
| commit | 2e37dafd7036973a315b525f131850a6fb6d0b35 (patch) | |
| tree | 090e5b29c706f38945209e33161b4cc9713782f2 /src/components/sound.py | |
| parent | 4c3920e6309b4e67e3d8d809dd0b5b6cd245fd0c (diff) | |
fixed various bugs
Diffstat (limited to 'src/components/sound.py')
| -rw-r--r-- | src/components/sound.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/sound.py b/src/components/sound.py index 1f43c83..9c114a8 100644 --- a/src/components/sound.py +++ b/src/components/sound.py @@ -28,7 +28,7 @@ class Component(Component): def previewRender(self, previewWorker): width = int(previewWorker.core.settings.value('outputWidth')) height = int(previewWorker.core.settings.value('outputHeight')) - return self.frameRender(self.compPos, 0) + return BlankFrame(width, height) def preFrameRender(self, **kwargs): pass @@ -37,7 +37,7 @@ class Component(Component): return ['static', 'audio'] def audio(self): - return self.sound + return (self.sound, {}) def pickSound(self): sndDir = self.settings.value("componentDir", os.path.expanduser("~")) @@ -50,8 +50,8 @@ class Component(Component): self.update() def frameRender(self, layerNo, frameNo): - width = int(self.core.settings.value('outputWidth')) - height = int(self.core.settings.value('outputHeight')) + width = int(self.settings.value('outputWidth')) + height = int(self.settings.value('outputHeight')) return BlankFrame(width, height) def loadPreset(self, pr, presetName=None): |
