boo/lib/audiodev/Common.hpp

25 lines
496 B
C++

#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
{
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