Martin Piatka
9d440a15e3
audio_utils: float2int: clamp input to valid range
...
This avoids pops and buzzing caused by integer overflow when the input
sample falls outside of the range [-1.0, 1.0] (I encountered this when
using jack capture).
2021-04-06 16:43:28 +02:00
Martin Pulec
04e1f472bd
Pipe: support for audio
2020-05-20 16:20:08 +02:00
Martin Pulec
27edf9ad71
Fixes
2019-12-04 13:28:02 +01:00
Martin Pulec
cad9f18fff
File cap.: use audo_frame::dispose
...
Use audo_frame::dispose and remove double buffering for audio.
2019-10-24 08:36:55 +02:00
Martin Pulec
ffec41208f
Added initial file input
2019-10-23 09:54:49 +02:00
Martin Pulec
8a45c78314
Fixed warnings
...
- added (const char *) attribute to param_u union to avoid casting away
const warnings
- added also (const void *) and (volatile void *) for the rest
- there was a typo in computing requested_mtu causing violating sequence
point evaluation order
- alsa_get_pcm_state_name: added attribute unused
- audio/utils.cpp: different signdness
- audio/utils.cpp: different signdness
- split capture filter: useless dispose_frame
- video_compress: not copying whole string (with strncpy)
2019-06-14 08:55:07 +02:00
Martin Pulec
315749bbe5
RTP: fix sending of RFC-compilant OPUS stream
...
RTP timestamp was incorrectly computed from data_len/bps which confused VLC.
+ some cleanup
2018-10-18 16:27:42 +02:00
Martin Pulec
a7830d3bc2
Fixed few warnings
2018-07-24 09:38:47 +02:00
Martin Pulec
5b3488ff8b
Audio: compute RMS - fixed
...
Fixed incorrectly computed normalized value of sample (depending on char
signedness).
2017-10-11 14:09:35 +02:00
Martin Pulec
54d45ba489
Audio: move audio types in separate header/src
2015-08-31 11:11:04 +02:00
Martin Pulec
343089e7b8
Audio decoder: return if we cannot find out output format
2015-08-31 11:11:04 +02:00
Martin Pulec
9672fcc20c
audio_codec_decompress: return obj instead of pointer
2015-08-31 11:11:03 +02:00
Martin Pulec
899ca0b56f
Audio sender: don't auto resample to 48000
...
+ some rework - audio_frame2 has now methods for changing bps and
resampling
2015-08-19 09:53:10 +02:00
Martin Pulec
e8a3d984f5
Another small (audio) fix
2015-03-26 15:26:09 +01:00
Martin Pulec
ccb2b7c36a
Added AJA capture
...
TODO: figure out 50p/60p modes, 4K, Windows support etc.
2015-01-29 16:26:10 +01:00
Martin Pulec
f210fe037e
Fixed audio bps and sample_rate handling
2014-11-27 11:25:31 +01:00
Martin Pulec
6890cb5a5d
Libavcodec: fixed float audio samples handling
2014-10-02 15:12:24 +02:00
Martin Pulec
37f079da8d
Fixed audio_frame2 sample computation
2014-08-26 19:52:30 +02:00
Martin Pulec
79b56ad8f7
GCC 4.6 compat
2014-08-26 10:42:11 +02:00
Martin Pulec
ef733c6f9e
audio_frame2: added const semantics
2014-08-21 14:01:31 +02:00
Martin Pulec
abb0cd7a20
Added rate limiter for audio but disable it
...
Is it really needed??
2014-08-18 12:37:19 +02:00
Martin Pulec
13b3555c0a
Rewrite audio_frame2 to C++ class
2014-08-18 12:37:14 +02:00
Martin Pulec
42504a3980
Use C++ compiler for files using audio_frame2
2014-08-13 13:37:52 +02:00