From eb30f44ec76492949a8bea243d3b4bc26421d9bd Mon Sep 17 00:00:00 2001 From: Dion Timmer Date: Thu, 6 Apr 2023 21:47:54 -0400 Subject: [PATCH] remove extra node --- nodes/DT_Play_Sound.py | 50 ------------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 nodes/DT_Play_Sound.py diff --git a/nodes/DT_Play_Sound.py b/nodes/DT_Play_Sound.py deleted file mode 100644 index f5e9b49..0000000 --- a/nodes/DT_Play_Sound.py +++ /dev/null @@ -1,50 +0,0 @@ -import subprocess, sys, os - -os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide" -try: - from pygame import mixer -except ModuleNotFoundError: - # install pixelsort in current venv - subprocess.check_call([sys.executable, "-m", "pip", "install", "pygame"]) - from pygame import mixer - -mixer.init() - -def PlaySound(path, volume): - mixer.music.load(path) - mixer.music.set_volume(volume) - mixer.music.play() - -class Play_Sound(): - """ - This node provides a simple interface to apply PixelSort blur to the output image. - """ - def __init__(self): - pass - - @classmethod - def INPUT_TYPES(cls): - """ - Input Types - """ - return { - "required": { - "images": ("IMAGE",), - "path": ("STRING", {"default": 'change_me.mp3'}), - "volume": ("FLOAT", {"default": 1, "min": 0.0, "max": 1.0, "step": 0.01}), - }, - "optional": { - }, - } - - RETURN_TYPES = ("IMAGE",) - FUNCTION = "do_sound" - - CATEGORY = "VextraNodes" - - def do_sound(self, images, path, volume): - PlaySound(path, volume) - -NODE_CLASS_MAPPINGS = { - "Play Sound": Play_Sound -}