From 110e656b4668e562912413658a6e89ca281ce81e Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 13 Nov 2024 14:31:27 +0100 Subject: [PATCH] aplay/mixer: fixed including --- src/audio/playback/mixer.cpp | 41 +++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/audio/playback/mixer.cpp b/src/audio/playback/mixer.cpp index c0031f4c4..2d7addf8d 100644 --- a/src/audio/playback/mixer.cpp +++ b/src/audio/playback/mixer.cpp @@ -3,7 +3,7 @@ * @author Martin Pulec */ /* - * Copyright (c) 2016-2023 CESNET z.s.p.o. + * Copyright (c) 2016-2024 CESNET * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,30 +35,37 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include // for max, min +#include // for assert +#include +#include // for fabs, log +#include // for int16_t, int32_t +#include // for printf +#include // for free, abort +#include // for NULL, strlen, strncmp, memcpy, memset +#include +#include // for numeric_limits +#include +#include // for unique_ptr, shared_ptr +#include +#include // for basic_string, operator==, string +#include +#include // for move, pair +#include -#ifdef HAVE_CONFIG_H -#include "config.h" -#include "config_unix.h" -#include "config_win32.h" -#endif - -#include "audio/audio_capture.h" #include "audio/audio_playback.h" #include "audio/codec.h" #include "audio/types.h" +#include "compat/net.h" // for sockaddr_in, sockaddr_in6, in6_addr #include "debug.h" +#include "host.h" // for get_commandline_param, uv_argv #include "lib_common.h" #include "module.h" #include "rtp/rtp.h" #include "transmit.h" +#include "types.h" // for tx_media_type #include "utils/audio_buffer.h" #include "utils/thread.h" -#include -#include -#include -#include -#include -#include #define SAMPLE_RATE 48000 #define BPS 2 /// @todo 4? @@ -375,14 +382,14 @@ static void audio_play_mixer_help() "\n" "Notes:\n" "1)\tYou do not need to specify audio participants explicitly,\n" - "\t" PACKAGE_NAME " simply sends the the stream back to the host\n" + "\tthe mixer simply sends the the stream back to the host\n" "\tthat is sending to mixer. Therefore it is necessary that the\n" - "\tparticipant uses single " PACKAGE_NAME " for both sending and\n" + "\tparticipant uses single UltraGrid for both sending and\n" "\treceiving audio.\n" "2)\tUses default port for receiving, therefore if you want to use it\n" "\ton machine that is a part of the conference, you should use something like:\n" "\t\t%s -s -P 5004:5004:5010:5006\n" - "\tfor the " PACKAGE_NAME " instance that is part of the conference (not mixer!)\n", + "\tfor the UltraGrid instance that is part of the conference (not mixer!)\n", uv_argv[0], uv_argv[0]); }