2017-09-28 03:11:40 +00:00
|
|
|
#ifndef BOO_AUDIOCOMMON_HPP
|
|
|
|
#define BOO_AUDIOCOMMON_HPP
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
namespace boo
|
|
|
|
{
|
|
|
|
|
|
|
|
/** Pertinent information from audio backend about optimal mixed-audio representation */
|
|
|
|
struct AudioVoiceEngineMixInfo
|
|
|
|
{
|
|
|
|
double m_sampleRate;
|
|
|
|
soxr_datatype_t m_sampleFormat;
|
|
|
|
unsigned m_bitsPerSample;
|
|
|
|
AudioChannelSet m_channels;
|
|
|
|
ChannelMap m_channelMap;
|
|
|
|
size_t m_periodFrames;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // BOO_AUDIOCOMMON_HPP
|