Norihiro Kamae
0eed7ca98f
libobs/audio-monitoring: Fix PulseAudio monitoring volume for s32 format
...
When signed 32-bit audio arrived to pulseaudio-output and volume was
lowered, audio data was broken. In the function `process_volume`, the
type of the data is switched by `bytes_per_channel`. However the size of
signed 32-bit integer and the size of float are same so that the signed
32-bit integer is processed as float.
This commit changes these items.
- Use `format` instead of `bytes_per_channel` so that all the sample
types can be differentiated.
- Change `short` to `int16_t` and renames existing function
`process_short` to `process_s16` to clarify the function is
processing signed 16-bit.
2021-10-23 23:59:53 -07:00
..
2021-10-23 23:59:53 -07:00
2021-10-14 04:28:04 -07:00
2021-10-02 05:53:27 -07:00
2021-10-10 19:12:45 -07:00
2021-10-13 20:00:04 +11:00
2021-10-13 20:00:04 +11:00
2021-10-10 19:19:01 -07:00
2020-04-27 00:07:18 +02:00
2014-09-27 09:41:32 -07:00
2014-05-08 14:43:16 +02:00
2019-11-27 14:00:15 -05:00
2019-06-23 23:49:10 -07:00
2021-07-06 14:08:28 -07:00
2019-06-23 23:49:10 -07:00
2021-10-13 20:00:04 +11:00
2021-01-12 10:10:37 -08:00
2021-10-04 10:38:39 -07:00
2021-04-23 12:38:50 -07:00
2021-04-23 12:38:50 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2021-09-11 15:33:02 -07:00
2020-02-18 21:37:41 -08:00
2019-06-23 23:49:10 -07:00
2021-10-10 19:12:45 -07:00
2021-01-25 04:13:24 -08:00
2019-06-23 23:49:10 -07:00
2019-11-17 20:30:42 -08:00
2019-06-23 23:49:10 -07:00
2021-10-15 22:10:33 -07:00
2021-01-17 10:31:58 +13:00
2021-01-17 10:31:58 +13:00
2021-07-04 08:49:42 -07:00
2020-08-10 12:24:01 -07:00
2021-02-01 19:05:10 -03:00
2021-02-09 09:39:04 -03:00
2021-02-09 09:39:04 -03:00
2021-02-09 09:39:04 -03:00
2021-03-10 20:14:01 -08:00
2021-02-01 19:03:43 -03:00
2021-07-08 10:53:15 -07:00
2021-02-01 19:03:43 -03:00
2021-03-04 19:29:33 +01:00
2021-10-01 12:58:14 +09:00
2019-07-07 16:38:22 -07:00
2021-07-09 17:32:09 +12:00
2021-07-09 17:32:09 +12:00
2021-09-13 01:37:51 -07:00
2021-03-16 22:15:16 -07:00
2020-11-13 18:22:53 -08:00
2020-11-13 18:22:53 -08:00
2021-01-21 07:42:57 -08:00
2021-02-02 13:28:54 -08:00
2021-10-15 22:10:33 -07:00
2021-05-03 01:19:56 -07:00
2019-10-14 17:19:38 -07:00
2021-08-23 18:26:37 -07:00
2021-01-21 07:42:57 -08:00
2019-06-23 23:49:10 -07:00
2021-02-03 13:08:57 -08:00
2020-08-26 22:57:52 +02:00
2021-08-23 22:57:10 -07:00
2021-10-15 22:10:33 -07:00
2020-08-10 12:24:01 -07:00
2021-02-09 09:39:04 -03:00