mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 05:20:36 +01: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
|
||||
if self.last_msg_audio != audio_field[1]:
|
||||
RNS.log("Reloading audio source", RNS.LOG_DEBUG)
|
||||
if len(audio_field[1]) > 10:
|
||||
self.last_msg_audio = audio_field[1]
|
||||
else:
|
||||
self.last_msg_audio = None
|
||||
return
|
||||
|
||||
if audio_field[0] == LXMF.AM_OPUS_OGG:
|
||||
temp_path = self.sideband.rec_cache+"/msg.ogg"
|
||||
|
Loading…
Reference in New Issue
Block a user