本文整理汇总了C++中Hydrogen::getCoreActionController方法的典型用法代码示例。如果您正苦于以下问题:C++ Hydrogen::getCoreActionController方法的具体用法?C++ Hydrogen::getCoreActionController怎么用?C++ Hydrogen::getCoreActionController使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hydrogen
的用法示例。
在下文中一共展示了Hydrogen::getCoreActionController方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: masterVolumeChanged
void Mixer::masterVolumeChanged(MasterMixerLine* ref)
{
Hydrogen *pEngine = Hydrogen::get_instance();
CoreActionController* pController = pEngine->getCoreActionController();
float Volume = ref->getVolume();
pController->setMasterVolume( Volume );
}
示例2: volumeChanged
void Mixer::volumeChanged(MixerLine* ref)
{
Hydrogen *pEngine = Hydrogen::get_instance();
CoreActionController* pController = pEngine->getCoreActionController();
int nLine = findMixerLineByRef(ref);
pController->setStripVolume( nLine, ref->getVolume() );
}
示例3: panChanged
void Mixer::panChanged(MixerLine* ref) {
float panValue = ref->getPan();
int nLine = findMixerLineByRef(ref);
Hydrogen *pEngine = Hydrogen::get_instance();
CoreActionController* pController = pEngine->getCoreActionController();
pController->setStripPan( nLine, panValue );
}
示例4: muteClicked
void Mixer::muteClicked(MixerLine* ref)
{
int nLine = findMixerLineByRef(ref);
bool isMuteClicked = ref->isMuteClicked();
Hydrogen *pEngine = Hydrogen::get_instance();
CoreActionController* pController = pEngine->getCoreActionController();
pEngine->setSelectedInstrumentNumber( nLine );
pController->setStripIsMuted( nLine, isMuteClicked );
}
示例5: soloClicked
void Mixer::soloClicked(MixerLine* ref)
{
Hydrogen *pEngine = Hydrogen::get_instance();
CoreActionController* pController = pEngine->getCoreActionController();
Song *pSong = pEngine->getSong();
InstrumentList *pInstrList = pSong->get_instrument_list();
int nInstruments = pInstrList->size();
int nLine = findMixerLineByRef(ref);
pController->setStripIsSoloed( nLine, ref->isSoloClicked() );
for ( int i = 0; i < nInstruments; ++i ) {
m_pMixerLine[i]->setSoloClicked( pInstrList->get(i)->is_soloed() );
m_pMixerLine[i]->setMuteClicked( pInstrList->get(i)->is_muted() );
}
Hydrogen::get_instance()->setSelectedInstrumentNumber(nLine);
}