Commit Graph

39 Commits

Author SHA1 Message Date
Martin Pulec
99588ababe remove module.deleter 2025-06-17 12:35:38 +02:00
Ben Roeder
a62fe80c3f Fix spelling errors throughout codebase
Corrected various spelling mistakes in comments, documentation, and
variable names across the project. Changes include:
- Documentation files (CONTRIBUTING.md, README.md, etc.)
- Source code comments in C/C++ files
- Function parameter names and descriptions

No functional changes were made.
2025-06-01 18:03:40 +01:00
Martin Pulec
4caf732be1 rtp.h: do not include config_*.h 2025-03-26 11:06:46 +01:00
Martin Pulec
16d41e8a5d aplay/mixer: restricting senders - check err
also workarounds for CIDs 47049{6,7}
2024-12-04 16:17:03 +01:00
Martin Pulec
0ac8c32716 aplay/mixer: allow selection of single participant
Allow selection of a single participant to be sent back with a control
socket (docuented in wiki).
2024-11-28 12:05:12 +01:00
Martin Pulec
9fd68d6447 aplay/mixer: factor out sockaddr_compare 2024-11-28 12:05:11 +01:00
Martin Pulec
82aed4b4ac aplay/mixer: sockadr cmp: check also IPv6 scope ID 2024-11-28 12:05:11 +01:00
Martin Pulec
950f3dc6a4 get_sockaddr_str: obtain IPv6 scope ID
write the IPv6 link-local address with scope ID

This is achieved by using getnameinfo instead of inet_ntop.

Also rewritten in respect to the above change - simplified, no need to
get the port number separately (getnameinfo does that as well).
2024-11-28 12:05:10 +01:00
Martin Pulec
0b27ea6e18 aplay/mixer: do not store particp sockaddr_storage
The participant sockaddr_storage doesn't need to be stored - actually the
participands are stored inside a map, whose key is the sockaddr_storage.

this modifies the commit 225fbc8ea (2024-11-13, and later fixes)
2024-11-28 12:05:10 +01:00
Martin Pulec
23197c9e78 aplay/mixer: pass audio_playback_opts to ctor
+ moved opt parsing to a separate function
2024-11-28 12:05:10 +01:00
Martin Pulec
9ff045c00b aplay API: paas init parameters in a structure
+ add also parent module pointer
2024-11-28 12:05:10 +01:00
Martin Pulec
d4e216e21c aplay/mixer: participant add/rm print fixes
- do not print it in constructor/dtor - the participant may be moved
- copy the stored address in copy constructor
- use get_sockaddr_str + change its prototype - do not use thread_local
vars but user provided buffer
- also take (const sockaddr *) in the get_sockaddr_str and
get_sockaddr_addr_* functions (participants iterated by const iterator
returning const participant reference)
2024-11-13 17:00:10 +01:00
Martin Pulec
a68f76ca9c aplay/mixer fix
fixed HEAD^^
2024-11-13 16:20:39 +01:00
Martin Pulec
225fbc8ea1 aplay/mixer: print participant add/rm 2024-11-13 14:52:28 +01:00
Martin Pulec
110e656b46 aplay/mixer: fixed including 2024-11-13 14:46:59 +01:00
Martin Pulec
7e2090b1cc audio mixer: fixed some Coverity complains
CID 424194, 424202
2023-11-21 09:38:25 +01:00
Martin Pulec
a4fa860b40 audio mixer: simplified 2023-11-21 09:08:15 +01:00
Martin Pulec
68eeafca5e Revert "audio transmit: new sending API"
This reverts commit bf35242e78.
2023-10-16 16:19:56 +02:00
Martin Pulec
cdef66a141 Revert "audio TX: use the packet API"
This reverts commit 8da83d3e92.
2023-10-16 16:19:56 +02:00
Martin Pulec
8da83d3e92 audio TX: use the packet API
It needs to be enabled explicitly, anyways - at least Opus won't work
with former UG versions. For 40 ms frame, it produces 2 packets. When
merged into one packet, the decoder is unable to decompress.
2023-08-01 12:01:05 +02:00
Martin Pulec
bf35242e78 audio transmit: new sending API
Added API allowing sending multiple compressed packets (eg. by Opus)
with the same timestamp.
2023-08-01 10:26:15 +02:00
Martin Pulec
6780691b4e modernize playback APIs
modernized video display, audio playback and vo postprocess APIs

THe APIs were already recently updated so modernize it by using bool
where the return value is semantically boolean value. Using TRUE/FALSE is
inherently ambiguous because it is not obvious from the prototype if
success is 0 or TRUE (1).
2023-07-18 16:43:37 +02:00
Martin Pulec
e99244b175 audio devices: removed handling of NULL cfg
cfg cannot be NULL so do not handle it in any way

In the historic API, empty options was passed as NULL but it is not the
case for some time so remove the NULL handling entirely not to be
confusing.
2023-06-06 09:26:27 +02:00
Martin Pulec
24b2cc5b91 audio mixer: do not use global should_exit 2023-03-24 14:06:49 +01:00
Martin Pulec
490c189aba removed help from audio playback API
it is no longer used in this way
2023-03-14 08:50:22 +01:00
Martin Pulec
cac1d11190 updated copyrights of files changed in 2023 2023-02-09 09:19:50 +01:00
Martin Piatka
1bcfbd38f2 audio_playback: Use the unified probe API 2023-01-30 12:41:13 +01:00
Martin Pulec
1e50d51e11 replaced unqualified move with std::move
to avoid this clang warning: https://reviews.llvm.org/D119670
2022-10-18 09:21:50 +02:00
Martin Pulec
6729a8a1ad audio: use const audio_frame 2022-05-25 17:09:42 +02:00
Martin Pulec
1b3b27eb7c Updated copyright dates for modified files 2021-11-08 15:43:14 +01:00
Martin Pulec
c35083fa91 Suppress clang warnings 2021-09-08 08:25:10 +02:00
Martin Pulec
8f557a97d6 Replaced audio/audio.h with audio/types.h includes
audio/audio.h should not be used as a catch-all header for audio.
2021-08-11 15:58:58 +02:00
Martin Pulec
1e9853e9e5 Audio compress: return object instead of pointer 2021-08-11 13:28:25 +02:00
Martin Piatka
eab94c12c0 Remove some unused includes
Removes some unused includes reported by include-what-you-use
2021-06-08 15:22:25 +02:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Pulec
83c3cae084 Name some further threads 2019-11-06 20:47:28 +01:00
Martin Pulec
ab9add0799 Fixed further warnings 2019-07-24 10:57:06 +02:00
Martin Pulec
ded740065c Added --param low-latency-audio
Currently modifies these values these values:
* audio pbuf delay - 32 ms -> 5 ms
* ALSA playback - minimal value
* ALSA audio buffer (internal in UG module) - 20 ms -> 5 ms
* audio mixer, internal audio buffer - 50 ms -> 5 ms
2017-02-22 16:16:07 +01:00
Martin Pulec
3ebaf50334 Added audio mixer 2017-01-18 11:13:24 +01:00