edr
01f357a985
v1.4
2024-04-10 21:30:11 +02:00
edr
ebe395fc8f
More tolerant socket timeout
2024-04-08 23:21:34 +02:00
edr
9c8e0b881f
Merge pull request #13 from fwiesel/normalize_relative_brightness
...
Normalize volume for brightness
2024-04-06 23:39:05 +02:00
Fabian Wiesel
1305eca655
Remove setters, and rename callbacks for onSomething
...
- Setters are rather java-esque, and ...
- callbacks in the Android ecosystem are usually more
called on<EventName> than <EventName>Callback.
2024-03-30 22:33:23 +01:00
Fabian Wiesel
4200a19378
Normalize volume for brightness
...
Undo an unintentional change done in f6a429e .
The brightness was calculated from the normalized volume, but when factoring
the norm out in the history, that norm was dropped.
2024-03-30 07:36:56 +01:00
edr
33a7a82a6a
v1.3
2024-03-26 21:17:42 +01:00
edr
72830e020e
Set socket timeout to properly detect when remote end loses network connection
2024-03-20 20:15:11 +01:00
edr
b874584cf7
Fix wrong success state upon reading zero bytes
2024-03-20 20:14:45 +01:00
edr
1018ded2d9
Refactor error handling in ListenService
2024-03-20 19:52:01 +01:00
Fabian Wiesel
3588622bd2
ListenService: Wrap Socket in a Result
...
This way we can handle the IOException in the same place
as in the java version, without throwing passing unchecked exceptions
2024-03-16 20:50:46 +01:00
Fabian Wiesel
a784eed506
Undo refactoring in ListenService
2024-03-04 20:36:06 +01:00
Fabian Wiesel
019c5e6e9f
Removed public modifier
2024-03-01 20:40:00 +01:00
Fabian Wiesel
be2b9084cb
Missed to log the exception
2024-03-01 20:26:12 +01:00
Fabian Wiesel
ea8357bb3c
Use try-catch where appropriate
2024-03-01 18:32:33 +01:00
Fabian Wiesel
282753854f
Made volumeHistory public
2024-03-01 18:03:33 +01:00
Fabian Wiesel
eba51360c1
Remove unnessary unit from function
2024-03-01 18:01:46 +01:00
Fabian Wiesel
03b7aff579
Missing closing brace
2024-03-01 17:59:01 +01:00
Fabian Wiesel
f5aa9da84c
Various style fixes
2024-03-01 17:24:35 +01:00
Fabian Wiesel
b9964d24d2
Changed G711UCodec license comment
2024-03-01 17:10:00 +01:00
Fabian Wiesel
d7ac99665d
Added comment about modifications
2024-02-28 21:32:28 +01:00
Fabian Wiesel
32235302c6
Use lateinit for notificationManager and nsdManager
2024-02-26 21:05:11 +01:00
Fabian Wiesel
41506bc601
Wrap java exceptions in runCatching blocks
2024-02-26 20:42:45 +01:00
Fabian Wiesel
c6c60d9dbd
Move service name to constructor
2024-02-26 19:41:52 +01:00
Fabian Wiesel
58095bc67b
Use ?.let instead if-null-test, avoid runnable
2024-02-26 19:41:52 +01:00
Fabian Wiesel
fa6e4da2c5
Move DiscoverActivity constant to companion object
2024-02-26 19:41:52 +01:00
Fabian Wiesel
c5b542a333
Unused arguments and unnessecary null checks
2024-02-26 19:41:52 +01:00
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