本文整理汇总了C++中CAEChannelInfo::ResolveChannels方法的典型用法代码示例。如果您正苦于以下问题:C++ CAEChannelInfo::ResolveChannels方法的具体用法?C++ CAEChannelInfo::ResolveChannels怎么用?C++ CAEChannelInfo::ResolveChannels使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAEChannelInfo
的用法示例。
在下文中一共展示了CAEChannelInfo::ResolveChannels方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AEChannelMapToAUDIOTRACKChannelMask
static int AEChannelMapToAUDIOTRACKChannelMask(CAEChannelInfo info)
{
info.ResolveChannels(CAEChannelInfo(KnownChannels));
// Detect layouts with 6 channels including one LFE channel
// We currently support the following layouts:
// 5.1 FL+FR+FC+LFE+BL+BR
// 5.1(side) FL+FR+FC+LFE+SL+SR
// According to CEA-861-D only RR and RL are defined
// Therefore we let Android decide about the 5.1 mapping
// For 8 channel layouts including one LFE channel
// we leave the same decision to Android
if (info.Count() == 6 && info.HasChannel(AE_CH_LFE))
return CJNIAudioFormat::CHANNEL_OUT_5POINT1;
if (info.Count() == 8 && info.HasChannel(AE_CH_LFE))
return CJNIAudioFormat::CHANNEL_OUT_7POINT1_SURROUND;
int atMask = 0;
for (unsigned int i = 0; i < info.Count(); i++)
atMask |= AEChannelToAUDIOTRACKChannel(info[i]);
return atMask;
}
示例2: AEChannelMapToAUDIOTRACKChannelMask
static int AEChannelMapToAUDIOTRACKChannelMask(CAEChannelInfo info)
{
#ifdef LIMIT_TO_STEREO_AND_5POINT1
if (info.Count() > 2 && info[0] != AE_CH_RAW)
return CJNIAudioFormat::CHANNEL_OUT_5POINT1;
else
return CJNIAudioFormat::CHANNEL_OUT_STEREO;
#endif
info.ResolveChannels(KnownChannels);
int atMask = 0;
for (unsigned int i = 0; i < info.Count(); i++)
atMask |= AEChannelToAUDIOTRACKChannel(info[i]);
return atMask;
}
示例3: AEChannelMapToAUDIOTRACKChannelMask
static int AEChannelMapToAUDIOTRACKChannelMask(CAEChannelInfo info)
{
#ifdef LIMIT_TO_STEREO_AND_5POINT1_AND_7POINT1
if (info.Count() > 6 && Has71Support())
return CJNIAudioFormat::CHANNEL_OUT_5POINT1
| CJNIAudioFormat::CHANNEL_OUT_SIDE_LEFT
| CJNIAudioFormat::CHANNEL_OUT_SIDE_RIGHT;
else if (info.Count() > 2)
return CJNIAudioFormat::CHANNEL_OUT_5POINT1;
else
return CJNIAudioFormat::CHANNEL_OUT_STEREO;
#endif
info.ResolveChannels(KnownChannels);
int atMask = 0;
for (unsigned int i = 0; i < info.Count(); i++)
atMask |= AEChannelToAUDIOTRACKChannel(info[i]);
return atMask;
}