Commit Graph

5362 Commits

Author SHA1 Message Date
Martin Pulec
e27bc421bd Audio dump: added usage 2021-10-14 10:52:47 +02:00
Martin Pulec
8f1074cd74 GCC 11 warning workaround
GCC 11 gives incorrect warning for unintialized strerror_buf on
strerror_buf.size(), which is, however, compile-time constant. As a
workaround a separate size constant is used.
2021-10-14 10:52:47 +02:00
Martin Pulec
3519d22f06 DeckLink cap.: refactor audio init a bit 2021-10-14 10:52:46 +02:00
Martin Pulec
2a511d58f5 DeckLink cap.: default audio BPS is 2 (originally 4)
When uncompressed it requires less bandwidth and it is more suitable for
compression and/or further processing.

+ fail if audio BPS or sample rate is invalid rather than displaying
  only a warning
+ removed unused FRAME_TIMEOUT
2021-10-14 10:52:43 +02:00
Martin Pulec
bd14f7fb70 Fixed rgb_rgba_to_gbrp
Incorrect BPP (3) was used for RGBA
2021-10-14 10:31:33 +02:00
Martin Pulec
e6a92e2cc4 Tool convert: small improvents
- use $(CXX) instead of hard-codec g++ in Makefile.convert
- conversion -> list-conversions + brief usage
2021-10-14 10:31:28 +02:00
Martin Piatka
bbaa729aa8 audio/export: Add missing const 2021-10-08 15:52:10 +02:00
Martin Piatka
782e0fdd95 audio/playback: dump module 2021-10-08 15:49:43 +02:00
Martin Pulec
4b652f2ec3 Merge pull request #197 from benroeder/master
fix type o found to find
2021-10-07 16:02:31 +02:00
Ben Roeder
cf2764750a fix type o found to find 2021-10-07 14:20:26 +01:00
Martin Pulec
702dd4e798 Export: added noaudio/novideo option
+ small improvements (use of MAX_PATH_SIZE)
2021-10-06 16:45:01 +02:00
Martin Pulec
cd3124be2e Set only mainloop req only on macOS
SDL, GL and NDI required mainloop only on macOS.
2021-10-06 09:09:58 +02:00
Martin Pulec
2e4fac60b8 Allow overriding display requirement for mainloop 2021-10-06 08:52:53 +02:00
Martin Pulec
c156ad9fa7 Audio export: fixed crash when no audio is expored
The export structure was not zero-initialized as expected when checked
for NULL.
2021-10-05 10:45:38 +02:00
Martin Pulec
09426b2a7c print rather err msg on wrong unit_evaluate(_dbl) val
Use an user-friendlier error message than assert.
2021-10-05 10:26:48 +02:00
Martin Pulec
3e6e100849 unit_evaluate(_dbl): accept also negative values 2021-10-05 10:15:58 +02:00
Martin Pulec
3dfc94a83a Transmit: allow setting of rate limiter with control socket 2021-10-05 10:15:54 +02:00
Martin Pulec
e90cdeb647 Removed msg_change_fec_data, use msg_universal
Removed msg_change_fec_data, use msg_universal instead.

This is a more versatile solution allowing further extensions without
a need to modify the global structure at an expese of worse type control.
As a replacement, a tag starting msg_universal::text is used/suggested.
2021-10-05 09:16:59 +02:00
Martin Pulec
99c3a1c221 Audio decoder: print loss count explicitly 2021-10-04 16:16:00 +02:00
Martin Pulec
7d0b6bba92 Audio decoder: use longs for byte counters 2021-10-04 15:24:59 +02:00
Martin Pulec
0539404810 Audio decoder: print mute status in periodic stats 2021-10-04 14:25:37 +02:00
Martin Pulec
54befa491a Audio decoder: correctly handle volume changes
1. set the volume for all channels
2. correctly set attribute muted according to the value (until now it
   was actually never set)
2021-10-04 14:08:05 +02:00
Martin Pulec
80924bfd1b Audio: indicate muted sender in periodic stats 2021-10-04 14:07:20 +02:00
Martin Pulec
34f0445af8 Audio: print explicitly muted receiver 2021-10-04 14:06:07 +02:00
Martin Pulec
50d759fc9a Audio: interactive info mute improvements
- show actual playback volume as 0 (-inf) if muted receiver
- display explicitly receiver mute status
- "Received audio volume" -> "Playback volume" - this has more clear
  semantics and is consistent with message written when '*'/'/'/'m' is
  pressed.
2021-10-04 11:55:01 +02:00
Martin Pulec
ba5763ef1a NAT: don't show NAT traversal hint for priv addr
Do not show hint to use NAT traversal if user uses private or loopback
address as a peer address.

This avoids misleading displaying in otherwise legitimate cases -
transmissions over loopback or behind NAT but just inside LAN.
2021-10-04 11:24:15 +02:00
Martin Pulec
5bf46b2de7 WAV writer: note about WAVE_FORMAT_EXTENSIBLE 2021-10-01 15:25:18 +02:00
Martin Pulec
43679c09fe WAV writer: write UINT32_MAX size first
Use UINT32_MAX for sizes first. This may help if WAV file is incorrectly
closed indicating that the size values aren't valid (at least FFmpeg
understands it so).
2021-10-01 10:53:44 +02:00
Martin Pulec
3adfc0144b WAV writer: better encapsluation 2021-10-01 10:49:13 +02:00
Martin Pulec
971dc3b2d0 DeckLink disp.: check for buffer underflow
+ fixed message for overflow
2021-10-01 08:13:35 +02:00
Martin Pulec
807183c155 Export: added "override" option 2021-09-30 15:13:59 +02:00
Martin Pulec
c4807ccd7b fs.{cpp,h}: fixed copyright date 2021-09-30 15:13:59 +02:00
Martin Pulec
cd9f3d5cb6 RTP: use bool for returned logical values
This modernizes the code and makes the semantic of prototypes more clear.
2021-09-30 15:13:59 +02:00
Martin Pulec
34c8f46c88 Video testcard: fixed a dummy error 2021-09-30 15:13:53 +02:00
Martin Pulec
5802363e83 Merge pull request #193 from Martin-Bela/Master
Enable querying location of executable
2021-09-29 15:43:16 +02:00
Martin Beľa
6df2bdd2b5 Enable querying location of executable
-add function get_exec_path and C++ wrapper around it
2021-09-25 10:13:14 +02:00
Martin Pulec
7c105394ae WASAPI play.: mark default device 2021-09-23 16:18:45 +02:00
Martin Pulec
3ac3be55b4 WASAPI cap.: mark default device 2021-09-23 16:17:25 +02:00
Martin Pulec
e59b6574ee Audio null playback/capture: error instead of assert
Do not assume that initialization of null device must succeed - eg. in
some errorneous setup there may be API mismatch leading to init failed.
2021-09-23 11:59:20 +02:00
Martin Pulec
36e15e66e1 Testcard: fixed wrong format message
Was printed NULL ("(null)") because *fmt was set to NULL early.
2021-09-23 11:14:38 +02:00
Martin Pulec
312c962ece Merge pull request #190 from tmenari/patch-1
[rtp] fix display_buf_increase_warning warning
2021-09-23 11:10:16 +02:00
Thomas Menari
1b2a17f6e5 [rtp] fix display_buf_increase_warning warning
rtp_set_recv_buf returns TRUE on success, which is #define'd to 1. Fix the logic in the check so the warning does not print erroneously.
2021-09-22 10:25:17 -07:00
Martin Pulec
be58fa51e1 configure: use --cflags-only-I for SDL(2)
SDL cflags define '-Dmain=SDL_main' otherwise leading to wrong main func
signature (perhaps SDL.h has some magic that corrects that but it isn't
included by our main.cpp).
2021-09-17 10:02:20 +02:00
Lukas Rucka
8f7bbd60ac FIX: SDL/SDL2 includes were missing in module CXXFLAGS, causing incompatibility on Ubuntu 20.04 with clang-10 2021-09-16 12:57:06 +02:00
Martin Pulec
83bb7f9f7d WAV reader: support for unseekable streams
Avoid needless seeks - data chunk must follow fmt chunk [1] thus the
file can be read without seeking (without the file size check).

[1] http://www.tactilemedia.com/info/MCI_Control_Info.html
2021-09-15 16:03:25 +02:00
Martin Pulec
e4fae04736 Import: small improvements 2021-09-15 12:21:16 +02:00
Martin Pulec
f9227a9fa7 Import: allow audio-only playback 2021-09-15 11:08:15 +02:00
Martin Pulec
417e81f847 Audio import: defer audio thread run after init
Thread was not correctly stopped causing crashes.
2021-09-15 10:00:21 +02:00
Martin Pulec
672fc1b56d WAV writer: warning if writting data segment >4 GiB 2021-09-14 16:30:37 +02:00
Martin Pulec
79193bf827 WAV writer: use _fseeki64
Shouldn't make a difference but just to be consistent.
2021-09-14 16:17:15 +02:00