Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app-pyaudioplayer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
santiago duque
app-pyaudioplayer
Commits
096b62dd
Commit
096b62dd
authored
Jul 23, 2025
by
santiago duque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added starting sound
parent
e43dd68d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
main.py
main.py
+13
-0
AUDIO_STATION_STARTED.mp3
sounds/AUDIO_STATION_STARTED.mp3
+0
-0
No files found.
main.py
View file @
096b62dd
...
@@ -118,6 +118,19 @@ current_sound_index = -1
...
@@ -118,6 +118,19 @@ current_sound_index = -1
# run empty setup
# run empty setup
setup_paths
(
False
)
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
DEFINE GPIO BUTTONS
...
...
sounds/AUDIO_STATION_STARTED.mp3
0 → 100644
View file @
096b62dd
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment