2020-04-26 20:49:20 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QAudioFormat>
|
|
|
|
|
2022-12-27 21:19:21 +01:00
|
|
|
#include <array>
|
|
|
|
|
2020-04-29 19:48:41 +02:00
|
|
|
static constexpr int frameRate = 44100;
|
2020-04-26 20:49:20 +02:00
|
|
|
static constexpr int channelCount = 2;
|
|
|
|
static constexpr int sampleSize = 32;
|
|
|
|
static constexpr auto codec = "audio/pcm";
|
|
|
|
static constexpr QAudioFormat::Endian byteOrder = QAudioFormat::LittleEndian;
|
|
|
|
static constexpr QAudioFormat::SampleType sampleType = QAudioFormat::Float;
|
|
|
|
using sample_t = float;
|
2022-12-27 21:19:21 +01:00
|
|
|
struct frame_t : std::array<sample_t, channelCount> {};
|
2020-04-26 20:49:20 +02:00
|
|
|
|
|
|
|
const QAudioFormat &audioFormat();
|