mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-27 16:39:32 -05:00
Don't play empty audio segments
This commit is contained in:
parent
7d107ce33d
commit
f3f72b3022
@ -1612,7 +1612,11 @@ class SidebandApp(MDApp):
|
|||||||
temp_path = None
|
temp_path = None
|
||||||
if self.last_msg_audio != audio_field[1]:
|
if self.last_msg_audio != audio_field[1]:
|
||||||
RNS.log("Reloading audio source", RNS.LOG_DEBUG)
|
RNS.log("Reloading audio source", RNS.LOG_DEBUG)
|
||||||
|
if len(audio_field[1]) > 10:
|
||||||
self.last_msg_audio = audio_field[1]
|
self.last_msg_audio = audio_field[1]
|
||||||
|
else:
|
||||||
|
self.last_msg_audio = None
|
||||||
|
return
|
||||||
|
|
||||||
if audio_field[0] == LXMF.AM_OPUS_OGG:
|
if audio_field[0] == LXMF.AM_OPUS_OGG:
|
||||||
temp_path = self.sideband.rec_cache+"/msg.ogg"
|
temp_path = self.sideband.rec_cache+"/msg.ogg"
|
||||||
|
Loading…
Reference in New Issue
Block a user