-
Notifications
You must be signed in to change notification settings - Fork 165
/
mp_config.h
executable file
·77 lines (64 loc) · 2.32 KB
/
mp_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* Copyright (C) 2012-2015 Doubango Telecom <http://www.doubango.org>
*
* This file is part of Open Source 'webrtc2sip' project
* <http://code.google.com/p/webrtc2sip/>
*
* 'webrtc2sip' is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* 'webrtc2sip' is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with 'webrtc2sip'.
*/
#if !defined(_MEDIAPROXY_CONFIG_H_)
#define _MEDIAPROXY_CONFIG_H_
#define WEBRTC2SIP_VERSION_MAJOR 2
#define WEBRTC2SIP_VERSION_MINOR 7
#define WEBRTC2SIP_VERSION_MICRO 0
#if !defined(WEBRTC2SIP_VERSION_STRING)
# define WEBRTC2SIP_VERSION_STRING MP_STRING(MP_CAT(WEBRTC2SIP_VERSION_MAJOR, .)) MP_STRING(MP_CAT(WEBRTC2SIP_VERSION_MINOR, .)) MP_STRING(WEBRTC2SIP_VERSION_MICRO)
#endif
#if !defined(WEBRTC2SIP_C2C_DATABASE_VERSION)
# define WEBRTC2SIP_C2C_DATABASE_VERSION 1
#endif
#if !defined(WEBRTC2SIP_C2C_SOFT_VERSION)
# define WEBRTC2SIP_C2C_SOFT_VERSION 1
#endif
#if defined(WIN32)|| defined(_WIN32) || defined(_WIN32_WCE)
# define MP_UNDER_WINDOWS 1
#endif
#if MP_UNDER_WINDOWS
# if !defined(_WIN32_WINNT)
# define _WIN32_WINNT 0x0500
# endif /* _WIN32_WINNT */
#endif /* MP_UNDER_WINDOWS */
#ifdef _MSC_VER
# define _CRT_SECURE_NO_WARNINGS
# define MP_INLINE _inline
#else
# define MP_INLINE inline
#endif
// Default audio values
#define MP_AUDIO_CHANNELS_DEFAULT 1
#define MP_AUDIO_BITS_PER_SAMPLE_DEFAULT 16
#define MP_AUDIO_RATE_DEFAULT 8000
#define MP_AUDIO_PTIME_DEFAULT 20
#define MP_AUDIO_MIXER_VOL 0.8f
#define MP_AUDIO_MIXER_DIM MPDimension_2D
#define MP_AUDIO_MAX_LATENCY 200 //ms
#define MP_AUDIO_RTP_TIMEOUT 2500 //ms
// Default video values
#define MP_VIDEO_WIDTH_DEFAULT 1280 // HD 720p
#define MP_VIDEO_HEIGHT_DEFAULT 720 // HD 720p
#define MP_VIDEO_FPS_DEFAULT 15
#define MP_VIDEO_RTP_TIMEOUT 2500 //ms
#define MP_VIDEO_MIXER_DIM MPDimension_2D
#define MP_INVALID_ID 0
#include <stdlib.h>
#endif /* _MEDIAPROXY_CONFIG_H_ */