Skip to content

Commit bc2bad5

Browse files
committed
audio.cpp: Replace TRUE and FALSE macros
1 parent ff3e34e commit bc2bad5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/audio/audio.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -561,18 +561,18 @@ static struct rtp *initialize_audio_network(struct audio_network_parameters *par
561561

562562
r = rtp_init_if(params->addr, params->mcast_if, params->recv_port,
563563
params->send_port, params->ttl, rtcp_bw,
564-
FALSE, rtp_recv_callback,
564+
false, rtp_recv_callback,
565565
(uint8_t *) params->participants,
566566
params->force_ip_version, false);
567567
if (r != NULL) {
568568
pdb_add(params->participants, rtp_my_ssrc(r));
569-
rtp_set_option(r, RTP_OPT_WEAK_VALIDATION, TRUE);
570-
rtp_set_option(r, RTP_OPT_PROMISC, TRUE);
571-
rtp_set_option(r, RTP_OPT_RECORD_SOURCE, TRUE);
569+
rtp_set_option(r, RTP_OPT_WEAK_VALIDATION, true);
570+
rtp_set_option(r, RTP_OPT_PROMISC, true);
571+
rtp_set_option(r, RTP_OPT_RECORD_SOURCE, true);
572572
rtp_set_sdes(r, rtp_my_ssrc(r), RTCP_SDES_TOOL,
573573
PACKAGE_STRING, strlen(PACKAGE_VERSION));
574574
if (strcmp(params->addr, IN6_BLACKHOLE_SERVER_MODE_STR) == 0) {
575-
rtp_set_option(r, RTP_OPT_SEND_BACK, TRUE);
575+
rtp_set_option(r, RTP_OPT_SEND_BACK, true);
576576
}
577577
rtp_set_recv_buf(r, DEFAULT_AUDIO_RECV_BUF_SIZE);
578578
}
@@ -824,7 +824,7 @@ static void *audio_receiver_thread(void *arg)
824824
string msg;
825825
if (audio_playback_reconfigure(s->audio_playback_device, curr_desc.bps * 8,
826826
curr_desc.ch_count,
827-
curr_desc.sample_rate) != TRUE) {
827+
curr_desc.sample_rate) != true) {
828828
log_l = LOG_LEVEL_ERROR;
829829
msg = "Audio reconfiguration failed";
830830
failed = true;

0 commit comments

Comments
 (0)