Commit Graph

88 Commits

Author SHA1 Message Date
Fabian Wiesel
5d17453c14 G711UCode: Rename variable to avoid shadowing 2024-02-26 19:41:52 +01:00
Fabian Wiesel
dee59d4735 Use foojay-resolver and set all java version to 21 2024-02-26 19:41:52 +01:00
Fabian Wiesel
029e82941e Change AudioCodecDefines to simple object 2024-02-26 19:41:52 +01:00
Fabian Wiesel
b8025b2300 G711UCodec move cod out of inner run() 2024-02-26 19:41:52 +01:00
Fabian Wiesel
cf790b330b G711UCodec: Drop unused function getSampleCount 2024-02-26 19:41:52 +01:00
Fabian Wiesel
2d57b16226 Move kotlin files into its own directory 2024-02-26 19:41:52 +01:00
Fabian Wiesel
9101c01af6 Merge branch 'master' into kotlin 2024-02-26 18:21:22 +01:00
edr
775cea84a4 v1.2 2024-02-24 16:45:58 +01:00
Fabian Wiesel
cd6c4b60a6 WIP: Modernize the Stack Kotlin Edition 2024-02-23 17:57:54 +01:00
edr
9526f23c0c More specific log message in ListenActivity.java 2024-02-21 21:21:59 +01:00
edr
30a0c26826 Minor fixup MonitorActivity.java 2024-02-21 21:21:59 +01:00
edr
1077b2e527 Minor fixup in MonitorService.java 2024-02-21 21:21:59 +01:00
Fabian Wiesel
77c8456d45 Only log the exception when unexpected
The socket is closed in another thread to stop the transmission.
That causes an exception, but that is the expected behaviour, so
do not log it.
2024-02-21 21:21:59 +01:00
Fabian Wiesel
523ee93d75 Split-off MonitorService
Same motivation as for the parent device:
The monitor activity will be quickly destroyed,
unless it is connected to a foreground service.

By moving the thread and audio listener to a service,
this should be avoided.
2024-02-21 21:21:59 +01:00
edr
1ac22e872b Merge branch 'master' into feature/listen-service 2024-02-21 18:58:01 +01:00
edr
7473fffa8a Fix possible NullPointerException 2024-02-21 18:56:14 +01:00
edr
f412e43e02 Use more arbitrary ID 2024-02-21 18:51:07 +01:00
edr
2818384c6e Reduce TAG visibility 2024-02-21 18:50:48 +01:00
edr
6edc59236a Remove member var name m prefixes 2024-02-21 18:47:29 +01:00
edr
2190ef1c94 Fix inappropriate canvas.getHeight/Width 2024-02-21 16:09:50 +01:00
edr
3be08d09f0 Make all license comments non-javadoc 2024-02-21 16:08:25 +01:00
edr
c9c4cdc282 Make paint member final 2024-02-21 16:00:05 +01:00
edr
8e754557fa Add missing license headers 2024-02-21 15:57:29 +01:00
edr
6b6458b04b Fix ArrayIndexOutOfBoundsException 2024-02-19 20:45:15 +01:00
Fabian Wiesel
d7e6ba2b5a Post error message from Listening Thread 2024-02-17 07:49:11 +01:00
edr
8a75044153 Remove unused entry from strings.xml 2024-02-17 02:46:31 +01:00
edr
43a7a66caa Fix possible NullPointerExceptions 2024-02-17 02:44:18 +01:00
edr
e95a554717 Delete unused method 2024-02-17 02:09:27 +01:00
edr
703406b517 Taking snapshots of volume view no longer needed 2024-02-17 02:07:44 +01:00
edr
0ae2ca4a65 Fix volume monitor scrolling 2024-02-17 01:17:41 +01:00
edr
7359716c09 Fix notification click handler 2024-02-17 01:00:55 +01:00
edr
5b0ccaa8a1 Store child device name as member var that can be queried later 2024-02-17 00:59:19 +01:00
Fabian Wiesel
7fd7451700 Get last length elements, not first 2024-02-17 00:55:27 +01:00
edr
a9f5b233e6 Avoid synchronized by scheduling writes on the main event loop 2024-02-17 00:01:59 +01:00
Fabian Wiesel
f6a429e545 Split out ListenService and VolumeHistory
This moves the model of the historic volume to its own class (VolumeHistory),
and extracts the listening out of the ListenActivity to the ListenService.
2024-02-16 20:50:19 +01:00
Fabian Wiesel
b339602184 Adopt settings from Android Studio
It doesn't change any functionality, only the format and
settings according to the recommendations of Android Studio
2024-02-16 20:35:48 +01:00
edr
f27e30f524 Prevent inserting duplicate entries into child device list 2024-02-14 23:44:31 +01:00
edr
b61a6f5ba8 v1.1 2024-01-12 21:11:58 +01:00
edr
37b21ad495 Upgrade gradle 2023-10-01 21:43:17 +02:00
edr
9d052fae2f Reenable build failure on lintErrors 2023-10-01 21:32:26 +02:00
edr
3d0cf2444c Remove redundant article in license text 2023-10-01 20:57:42 +02:00
edr
4571b06b23 Reenable build errors on lintFailure 2023-10-01 20:44:41 +02:00
edr
1625d50359 Fix some warnings 2023-10-01 20:37:03 +02:00
edr
db032437dd Reduce sampling frequency to 8000 Hz 2023-10-01 20:18:03 +02:00
edr
b8c78797e4 Set port field by default 2023-10-01 20:17:31 +02:00
edr
f98526b4fb Fix another crash and some reformatting 2023-10-01 00:52:43 +02:00
edr
d1e7c1b239 optimize imports 2023-09-30 19:17:40 +02:00
edr
a52bebc8ab Update dependency type compile -> implementation 2023-09-30 19:12:10 +02:00
edr
5d2fd1fba8 Enforce client disconnect when closing monitoring view 2023-09-30 16:43:50 +02:00
edr
9ec30c33da Add AudioCompression (ulaw) 2023-09-30 16:31:35 +02:00