Skip to content

Commit bff6ec0

Browse files
authored
Merge pull request #235 from bondagit/issue-232-234
Issue 230 232 234
2 parents b0894ea + dfe6cbd commit bff6ec0

14 files changed

Lines changed: 106 additions & 21 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ The script allows a user to test a specific configuration and it can be used to
263263

264264
Usage run_test.sh sample_format sample_rate channels duration
265265
sample_format can be one of S16_LE, S24_3LE, S32_LE
266-
sample_rate can be one of 44100, 48000, 88200, 96000, 192000, 384000
266+
sample_rate can be one of 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
267267
channels can be one of 2, 4, 6, up to 64
268268
duration is in the range 1 to 10 minutes
269269

daemon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ where:
261261
262262
> **sample\_rate**
263263
> JSON number specifying the default sample rate.
264-
> Valid values are 44100Hz, 48000Hz, 88200Hz, 96000Hz, 192000Hz and 384000Hz.
264+
> Valid values are 44100Hz, 48000Hz, 88200Hz, 96000Hz, 176400Hz, 192000Hz, 352800Hz and 384000Hz.
265265
266266
> **playout\_delay**
267267
> JSON number specifying the default safety playout delay at 1FS in samples.

daemon/config.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ std::shared_ptr<Config> Config::parse(const std::string& filename,
120120
if (ip_str.empty()) {
121121
std::cerr << "Cannot retrieve IPv4 address for interface "
122122
<< config.interface_name_ << std::endl;
123-
} else {
124-
config.ip_addr_ = ip_addr;
125-
config.ip_str_ = ip_str;
126123
}
124+
config.ip_addr_ = ip_addr;
125+
config.ip_str_ = ip_str;
127126

128127
config.config_filename_ = filename;
129128
config.daemon_restart_ = false;

daemon/interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ std::tuple<uint32_t, std::string, bool> get_new_interface_ip(
9393

9494
auto [ip_addr, ip_str] = get_interface_ip(interface_name);
9595
BOOST_LOG_TRIVIAL(info) << "interface " << interface_name
96-
<< " new IP address " << ip_str;
96+
<< " new IP address <" << ip_str << ">";
9797
return { ip_addr, ip_str, true };
9898
}
9999

daemon/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace po = boost::program_options;
4343
namespace postyle = boost::program_options::command_line_style;
4444
namespace logging = boost::log;
4545

46-
static const std::string version("bondagit-2.1.1");
46+
static const std::string version("bondagit-2.1.2");
4747
static std::atomic<bool> terminate = false;
4848

4949
void termination_handler(int signum) {
@@ -117,9 +117,9 @@ int main(int argc, char* argv[]) {
117117

118118
if (current_watchdog_usec > 0) {
119119
// Inform systemd that if we're not petting the dog in 5s we're bust.
120-
sd_notify(0, "WATCHDOG_USEC=5000000");
120+
sd_notify(0, "WATCHDOG_USEC=10000000");
121121

122-
current_watchdog_usec = 5000000;
122+
current_watchdog_usec = 10000000;
123123
}
124124
#endif
125125

run_latency_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function cleanup {
1515
function usage {
1616
echo 'Usage run_latency_test.sh sample_format sample_rate channels duration frames' >&2
1717
echo ' sample_format can be one of S16_LE, S24_3LE, S32_LE' >&2
18-
echo ' sample_rate can be one of 44100, 48000, 88200, 96000, 192000, 384000' >&2
18+
echo ' sample_rate can be one of 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000' >&2
1919
echo ' channels can be one of 2, 4, 6, up to 64' >&2
2020
echo ' duration in seconds' >&2
2121
echo ' frames buffer size in frames' >&2

run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo 'Creating test file ...' >&2
4545
if ! ./createtest $1 $2 $3 $4 ; then
4646
echo 'Usage run_test.sh sample_format sample_rate channels duration' >&2
4747
echo ' sample_format can be one of S16_LE, S24_3LE, S32_LE' >&2
48-
echo ' sample_rate can be one of 44100, 48000, 88200, 96000, 192000, 384000' >&2
48+
echo ' sample_rate can be one of 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000' >&2
4949
echo ' channels can be one of 2, 4, 6, up to 64' >&2
5050
echo ' duration is in the range 1 to 10 minutes' >&2
5151
exit 1

systemd/aes67-daemon.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ After=network.target
77
Type=notify
88
# Will be adjusted by service during startup
99
WatchdogSec=10
10+
# In case of no IP we wait forever
11+
TimeoutStartSec=0
1012

1113
# Run as separate user created via sysusers.d
1214
User=aes67-daemon

systemd/daemon.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"http_port": 8080,
33
"rtsp_port": 8854,
44
"http_base_dir": "/usr/local/share/aes67-daemon/webui/",
5-
"log_severity": 1,
5+
"log_severity": 2,
66
"playout_delay": 0,
7-
"tic_frame_size_at_1fs": 64,
7+
"tic_frame_size_at_1fs": 48,
88
"max_tic_frame_size": 1024,
99
"sample_rate": 48000,
1010
"rtp_mcast_base": "239.1.0.1",

0 commit comments

Comments
 (0)