Commit 096b62dd authored by santiago duque's avatar santiago duque

added starting sound

parent e43dd68d
......@@ -118,6 +118,19 @@ current_sound_index = -1
# run empty setup
setup_paths(False)
# --- Play startup sound ---
startup_sound_path = os.path.join(sound_dir_local, "AUDIO_STATION_STARTED.mp3")
if os.path.isfile(startup_sound_path):
try:
startup_sound = pygame.mixer.Sound(startup_sound_path)
print("Playing startup sound...")
startup_sound.play()
pygame.time.wait(int(startup_sound.get_length() * 1000)) # Wait for playback
except Exception as e:
print("Error playing startup sound:", e)
else:
print("Startup sound not found at:", startup_sound_path)
"""
DEFINE GPIO BUTTONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment