for (;;) {
int ret;
- pa_bool_t need_timer = FALSE;
+ bool need_timer = false;
if (u->sink) {
if (PA_UNLIKELY(u->sink->thread_info.rewind_requested))
if (PA_SINK_IS_OPENED(u->sink->thread_info.state)) {
do_write(u);
- need_timer = TRUE;
+ need_timer = true;
}
}
if (u->source && PA_SOURCE_IS_OPENED(u->source->thread_info.state)) {
do_read(u);
- need_timer = TRUE;
+ need_timer = true;
}
if (need_timer)
pa_rtpoll_set_timer_disabled(u->rtpoll);
/* Hmm, nothing to do. Let's sleep */
- if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0)
+ if ((ret = pa_rtpoll_run(u->rtpoll, true)) < 0)
goto fail;
if (ret == 0)
WAVEOUTCAPS pwoc;
MMRESULT result;
int nfrags, frag_size;
- pa_bool_t record = TRUE, playback = TRUE;
+ bool record = true, playback = true;
unsigned int device;
pa_sample_spec ss;
pa_channel_map map;