boo/lib/audiodev/Common.hpp

25 lines
619 B
C++
Raw Normal View History

#ifndef BOO_AUDIOCOMMON_HPP
#define BOO_AUDIOCOMMON_HPP
#include <soxr.h>
#include "../Common.hpp"
#include "boo/audiodev/IAudioVoice.hpp"
namespace boo
{
/** Pertinent information from audio backend about optimal mixed-audio representation */
struct AudioVoiceEngineMixInfo
{
2018-05-25 06:30:42 +00:00
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;
};
}
#endif // BOO_AUDIOCOMMON_HPP