<commit_before>/*
 * Copyright (c) 2019 Roc authors
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include <string.h>

#include "roc_core/log.h"
#include "roc_core/panic.h"
#include "roc_core/time.h"
#include "roc_packet/units.h"
#include "roc_sndio/pulseaudio_sink.h"

namespace roc {
namespace sndio {

namespace {

const core::nanoseconds_t ReportInterval = 10 * core::Second;

const core::nanoseconds_t DefaultLatency = core::Millisecond * 40;

const core::nanoseconds_t MinTimeout = core::Millisecond * 50;<commit_msg>Increase default PulseAudio latency<commit_after>/*
 * Copyright (c) 2019 Roc authors
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include <string.h>

#include "roc_core/log.h"
#include "roc_core/panic.h"
#include "roc_core/time.h"
#include "roc_packet/units.h"
#include "roc_sndio/pulseaudio_sink.h"

namespace roc {
namespace sndio {

namespace {

const core::nanoseconds_t ReportInterval = 10 * core::Second;

const core::nanoseconds_t DefaultLatency = core::Millisecond * 50;

const core::nanoseconds_t MinTimeout = core::Millisecond * 50;
{'fraction_non_alphanumeric': 0.11604584527220631, 'fraction_numerical': 0.02005730659025788, 'mean_word_length': 4.588, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5218433', 'n_tokens_mistral': 505, 'n_tokens_neox': 465, 'n_words': 146}