2018-10-07 03:36:44 +00:00
|
|
|
#pragma once
|
2017-09-28 03:11:40 +00:00
|
|
|
|
|
|
|
#include <soxr.h>
|
2017-12-03 06:05:16 +00:00
|
|
|
#include "../Common.hpp"
|
|
|
|
#include "boo/audiodev/IAudioVoice.hpp"
|
2017-09-28 03:11:40 +00:00
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
namespace boo {
|
2017-09-28 03:11:40 +00:00
|
|
|
|
|
|
|
/** Pertinent information from audio backend about optimal mixed-audio representation */
|
2018-12-08 05:17:51 +00:00
|
|
|
struct AudioVoiceEngineMixInfo {
|
|
|
|
double m_sampleRate = 32000.0;
|
|
|
|
soxr_datatype_t m_sampleFormat = SOXR_FLOAT32_I;
|
|
|
|
unsigned m_bitsPerSample = 32;
|
|
|
|
AudioChannelSet m_channels = AudioChannelSet::Stereo;
|
|
|
|
ChannelMap m_channelMap = {2, {AudioChannel::FrontLeft, AudioChannel::FrontRight}};
|
|
|
|
size_t m_periodFrames = 160;
|
2017-09-28 03:11:40 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
} // namespace boo
|