mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-08 18:32:55 -05:00
Enabled LXST voice calls on Android
This commit is contained in:
parent
e5dfa81b0a
commit
7d0c9e8c4d
2 changed files with 21 additions and 3 deletions
|
|
@ -4,8 +4,8 @@ package.name = sideband
|
|||
package.domain = io.unsigned
|
||||
|
||||
source.dir = .
|
||||
source.include_exts = py,png,jpg,jpeg,webp,ttf,kv,pyi,typed,so,0,1,2,3,atlas,frag,html,css,js,whl,zip,gz,woff2,pdf,epub,pgm
|
||||
source.include_patterns = assets/*,assets/fonts/*,share/*
|
||||
source.include_exts = py,png,jpg,jpeg,webp,ttf,kv,pyi,typed,so,0,1,2,3,atlas,frag,html,css,js,whl,zip,gz,woff2,pdf,epub,pgm,opus
|
||||
source.include_patterns = assets/*,assets/fonts/*,assets/audio/notifications/*,share/*
|
||||
source.exclude_patterns = app_storage/*,venv/*,Makefile,./Makefil*,requirements,precompiled/*,parked/*,./setup.py,Makef*,./Makefile,Makefile,bin/*,build/*,dist/*,__pycache__/*
|
||||
|
||||
version.regex = __version__ = ['"](.*)['"]
|
||||
|
|
|
|||
|
|
@ -1831,6 +1831,25 @@ class SidebandApp(MDApp):
|
|||
|
||||
Clock.schedule_once(final_exit, 0.85)
|
||||
|
||||
# def test_audio_action(self, sender=None):
|
||||
# if not hasattr(self, "audiotestrunning") or self.audiotestrunning == False:
|
||||
# RNS.log("LXST audio backend test starting", RNS.LOG_DEBUG)
|
||||
# self.audiotestrunning = True
|
||||
# import LXST
|
||||
# ringtone_path = os.path.join(self.sideband.asset_dir, "audio", "notifications", "soft1.opus")
|
||||
# target_frame_ms = 40
|
||||
# selected_source = LXST.Sources.OpusFileSource(ringtone_path, loop=True, target_frame_ms=target_frame_ms)
|
||||
# line_sink = LXST.Sinks.LineSink()
|
||||
# loopback = LXST.Sources.Loopback()
|
||||
# raw = LXST.Codecs.Raw()
|
||||
# self.input_pipeline = LXST.Pipeline(source=selected_source, codec=raw, sink=loopback)
|
||||
# self.output_pipeline = LXST.Pipeline(source=loopback, codec=raw, sink=line_sink)
|
||||
# self.input_pipeline.start(); self.output_pipeline.start()
|
||||
# else:
|
||||
# RNS.log("LXST audio backend test stopping", RNS.LOG_DEBUG)
|
||||
# self.input_pipeline.stop()
|
||||
# self.audiotestrunning = False
|
||||
|
||||
def announce_now_action(self, sender=None):
|
||||
self.sideband.lxmf_announce()
|
||||
if self.sideband.telephone: self.sideband.telephone.announce()
|
||||
|
|
@ -3684,7 +3703,6 @@ class SidebandApp(MDApp):
|
|||
|
||||
self.settings_screen.ids.settings_voice_enabled.active = self.sideband.config["voice_enabled"]
|
||||
self.settings_screen.ids.settings_voice_enabled.bind(active=save_voice_enabled)
|
||||
if RNS.vendor.platformutils.is_android(): self.settings_screen.ids.settings_voice_enabled.disabled = True
|
||||
|
||||
self.settings_screen.ids.settings_debug.active = self.sideband.config["debug"]
|
||||
self.settings_screen.ids.settings_debug.bind(active=save_debug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue