當前位置: 首頁>>代碼示例>>C++>>正文


C++ AudioChannelSet函數代碼示例

本文整理匯總了C++中AudioChannelSet函數的典型用法代碼示例。如果您正苦於以下問題:C++ AudioChannelSet函數的具體用法?C++ AudioChannelSet怎麽用?C++ AudioChannelSet使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了AudioChannelSet函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: AudioChannelSet

AudioChannelSet AudioChannelSet::namedChannelSet (int numChannels)
{
    if (numChannels == 1) return AudioChannelSet::mono();
    if (numChannels == 2) return AudioChannelSet::stereo();
    if (numChannels == 3) return AudioChannelSet::createLCR();
    if (numChannels == 4) return AudioChannelSet::quadraphonic();
    if (numChannels == 5) return AudioChannelSet::create5point0();
    if (numChannels == 6) return AudioChannelSet::create5point1();
    if (numChannels == 7) return AudioChannelSet::create7point0();
    if (numChannels == 8) return AudioChannelSet::create7point1();

    return AudioChannelSet();
}
開發者ID:0x4d52,項目名稱:JUCE,代碼行數:13,代碼來源:juce_AudioChannelSet.cpp

示例2: AudioChannelSet

AudioChannelSet AudioChannelSet::createFront7point1() { return AudioChannelSet ((1u << left) | (1u << right) | (1u << centre) | (1u << subbass) | (1u << surroundLeft)  | (1u << surroundRight) | (1u << centreLeft) | (1u << centreRight)); }
開發者ID:GRIS-UdeM,項目名稱:Octogris,代碼行數:1,代碼來源:juce_AudioChannelSet.cpp

示例3: AudioChannelSet

AudioChannelSet AudioChannelSet::disabled()           {
    return AudioChannelSet();
}
開發者ID:osakared,項目名稱:MidiSelect,代碼行數:3,代碼來源:juce_AudioChannelSet.cpp

示例4: AudioChannelSet

AudioChannelSet AudioChannelSet::pentagonal()         { return AudioChannelSet ((1u << left) | (1u << right) | (1u << surroundLeft) | (1u << surroundRight) | (1u << centre)); }
開發者ID:XNerv,項目名稱:JUCE,代碼行數:1,代碼來源:juce_AudioChannelSet.cpp

示例5: AudioChannelSet

//==============================================================================
AudioChannelSet JUCE_CALLTYPE AudioChannelSet::fromWaveChannelMask (int32 dwChannelMask)
{
    return AudioChannelSet (static_cast<uint32> ((dwChannelMask & ((1 << 18) - 1)) << 1));
}
開發者ID:Ixox,項目名稱:preenfm2Controller,代碼行數:5,代碼來源:juce_AudioChannelSet.cpp


注:本文中的AudioChannelSet函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。