Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored May 9, 2022
1 parent 5bf9dff commit 28fc4fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}
},
"short_name": "Radio",
"version": "2.1.24",
"version": "2.1.25",
"web_accessible_resources": [
"css/*.css",
"images/*.svg",
Expand Down
12 changes: 7 additions & 5 deletions pkg/internet_radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# omxplayer -o local --vol -2000 -z --audio_queue 10 --audio_fifo 10 --threshold 5 http://live.dancemusic.ro:7000/stream
# omxplayer -o alsa:bluealsa http://live.dancemusic.ro:7000/stream --vol -2000 -z --audio_queue 10 --audio_fifo 10 --threshold 5

# omxplayer -o alsa:sysdefault http://live.dancemusic.ro:7000/stream --vol -2000 -z --audio_queue 10 --audio_fifo 10 --threshold 5

import os
import re
Expand Down Expand Up @@ -802,10 +802,12 @@ def set_radio_state(self,power,also_call_volume=True):

else:

if self.persistent_data['audio_output'] == 'Built-in headphone jack':
omx_output = "local"
else:
omx_output = "hdmi"
#if self.persistent_data['audio_output'] == 'Built-in headphone jack':
# omx_output = "local"
#else:
# omx_output = "hdmi"

omx_output = "alsa:sysdefault"

if self.output_to_both:
omx_output = "both"
Expand Down

0 comments on commit 28fc4fe

Please sign in to comment.