[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] 5 commits: module-combine-sink: Use fabs() instead of abs() for double
PulseAudio Marge Bot (@pulseaudio-merge-bot)
gitlab at gitlab.freedesktop.org
Mon Jul 18 14:50:37 UTC 2022
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
0b4af61e by Peter Meerwald-Stadler at 2022-07-18T14:47:38+00:00
module-combine-sink: Use fabs() instead of abs() for double
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/733>
- - - - -
63d0db83 by Peter Meerwald-Stadler at 2022-07-18T14:47:38+00:00
module-combine-sink: Fix indentation
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/733>
- - - - -
f71eafe4 by Peter Meerwald-Stadler at 2022-07-18T14:47:38+00:00
module-tunnel: Fix typos
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/733>
- - - - -
e8509ea8 by Peter Meerwald-Stadler at 2022-07-18T14:47:38+00:00
volume: Fix typo
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/733>
- - - - -
9360dce7 by Peter Meerwald-Stadler at 2022-07-18T14:47:38+00:00
raop-client: Fix typo
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/733>
- - - - -
4 changed files:
- src/modules/module-combine-sink.c
- src/modules/module-tunnel.c
- src/modules/raop/raop-client.c
- src/pulse/volume.h
Changes:
=====================================
src/modules/module-combine-sink.c
=====================================
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <errno.h>
+#include <math.h>
#include <pulse/rtclock.h>
#include <pulse/timeval.h>
@@ -178,7 +179,7 @@ struct userdata {
#ifdef USE_SMOOTHER_2
pa_smoother_2 *smoother;
#else
- pa_smoother *smoother;
+ pa_smoother *smoother;
#endif
uint64_t counter;
@@ -239,7 +240,7 @@ static uint32_t rate_controller(
/* Choose the rate that is nearer to base_rate */
new_rate = new_rate_2;
- if (abs(new_rate_1 - base_rate) < abs(new_rate_2 - base_rate))
+ if (fabs(new_rate_1 - base_rate) < fabs(new_rate_2 - base_rate))
new_rate = new_rate_1;
return (uint32_t)(new_rate + 0.5);
=====================================
src/modules/module-tunnel.c
=====================================
@@ -1000,7 +1000,7 @@ static void stream_get_latency_callback(pa_pdispatch *pd, uint32_t command, uint
else
delay -= (int64_t) pa_bytes_to_usec((uint64_t) (read_index-write_index), ss);
- /* Our measurements are already out of date, hence correct by the *
+ /* Our measurements are already out of date, hence correct by the
* transport latency */
#ifdef TUNNEL_SINK
delay -= (int64_t) u->transport_usec;
@@ -1008,7 +1008,7 @@ static void stream_get_latency_callback(pa_pdispatch *pd, uint32_t command, uint
delay += (int64_t) u->transport_usec;
#endif
- /* Now correct by what we have have written since we requested the update. This
+ /* Now correct by what we have written since we requested the update. This
* is not necessary for the source, because if data is received between request
* and reply, it was already posted before we requested the source latency. */
#ifdef TUNNEL_SINK
=====================================
src/modules/raop/raop-client.c
=====================================
@@ -480,7 +480,7 @@ static ssize_t send_udp_audio_packet(pa_raop_client *c, pa_memchunk *block, size
}
pa_memblock_release(packet->memblock);
- /* It is meaningless to preseve the partial data */
+ /* It is meaningless to preserve the partial data */
block->index += block->length;
block->length = 0;
=====================================
src/pulse/volume.h
=====================================
@@ -49,7 +49,7 @@
* sink input. In fact, it depends on the server configuration. With flat
* volumes enabled, it means the maximum volume that the sound hardware is
* capable of, which is usually so high that you absolutely must not set sink
- * input volume to 100% unless the the user explicitly requests that (note that
+ * input volume to 100% unless the user explicitly requests that (note that
* usually you shouldn't set the volume anyway if the user doesn't explicitly
* request it, instead, let PulseAudio decide the volume for the sink input).
* With flat volumes disabled the sink input volume is relative to the sink
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/compare/07a9fcefbab049d66cb174ca2c9b91fecc444c5b...9360dce76d9b0e85457fe004b17fd1333a16c673
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/compare/07a9fcefbab049d66cb174ca2c9b91fecc444c5b...9360dce76d9b0e85457fe004b17fd1333a16c673
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20220718/212e8738/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list