Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxsndhelpers_p.h File Reference

(b5f353a5c3ff5f20b7e3a724b34d49bf88357f47)

#include <alsa/asoundlib.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qloggingcategory.h>
#include <QtMultimedia/qaudioformat.h>
#include <QtMultimedia/private/qaudiohelpers_p.h>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <optional>
Include dependency graph for qqnxsndhelpers_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QnxSndHelpers::WakePipe
struct  QnxSndHelpers::HintsDeleter
struct  QnxSndHelpers::PcmOpenConfig
struct  QnxSndHelpers::PcmOpenResult

Namespaces

namespace  QnxSndHelpers

Typedefs

using QnxSndHelpers::HintsGuard = std::unique_ptr<void *, HintsDeleter>

Enumerations

enum class  QnxSndHelpers::PollOutcome { QnxSndHelpers::Ready , QnxSndHelpers::Woken , QnxSndHelpers::Error }

Functions

PollOutcome QnxSndHelpers::pollPcm (snd_pcm_t *handle, const WakePipe &wake)
snd_pcm_format_t QnxSndHelpers::mapSampleFormat (QAudioFormat::SampleFormat) noexcept
int QnxSndHelpers::recoverFromXrun (snd_pcm_t *handle, int err)
int QnxSndHelpers::startPcm (snd_pcm_t *handle)
void QnxSndHelpers::setWorkerRealtimePriority (const QLoggingCategory &category)
PcmOpenResult QnxSndHelpers::openConfiguredPcm (const PcmOpenConfig &config)

Variables

constexpr int QnxSndHelpers::kSuspendResumeRetryLimit = 5
constexpr std::chrono::milliseconds QnxSndHelpers::kSuspendResumeRetryDelay { 100 }
constexpr unsigned QnxSndHelpers::kDefaultPeriodCount = 3
constexpr unsigned QnxSndHelpers::kMinPeriodCount = 2
constexpr unsigned QnxSndHelpers::kMaxPeriodCount = 16
constexpr snd_pcm_uframes_t QnxSndHelpers::kDefaultPeriodFrames = 1024
constexpr int QnxSndHelpers::kMinWorkerPriority = 11
constexpr int QnxSndHelpers::kMaxWorkerPriority = 23
constexpr int QnxSndHelpers::kDefaultWorkerPriority = 20