本文整理汇总了C++中Transport::isRecording方法的典型用法代码示例。如果您正苦于以下问题:C++ Transport::isRecording方法的具体用法?C++ Transport::isRecording怎么用?C++ Transport::isRecording使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transport
的用法示例。
在下文中一共展示了Transport::isRecording方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getCommandInfo
// This method is used when something needs to find out the details about one of the commands
// that this object can perform..
void HostFilterComponent::getCommandInfo (const CommandID commandID, ApplicationCommandInfo& result)
{
const int none = 0;
const int cmd = ModifierKeys::commandModifier;
// const int shift = ModifierKeys::shiftModifier;
GraphComponent* graph = main->getGraph ();
Transport* transport = getFilter()->getTransport();
switch (commandID)
{
//----------------------------------------------------------------------------------------------
case CommandIDs::pluginOpen:
result.setInfo (T("Open Plugin..."), T("Open a plugin"), CommandCategories::file, 0);
result.addDefaultKeypress (T('l'), cmd);
result.setActive (true);
break;
case CommandIDs::pluginClose:
{
result.setInfo (T("Close Plugins"), T("Close selected plugins"), CommandCategories::file, 0);
result.addDefaultKeypress (T('k'), cmd);
// TODO - have to update this !
// GraphComponent* track = tracks.getUnchecked (0);
// result.setActive ((track ? (track->getSelectedPlugin () != -1) : false));
result.setActive (false);
break;
}
case CommandIDs::pluginClear:
{
result.setInfo (T("Clear Plugins"), T("Close all plugins"), CommandCategories::file, 0);
result.addDefaultKeypress (T('j'), cmd);
result.setActive ((graph ? (graph->getPluginsCount () > 2) : false));
break;
}
case CommandIDs::showPluginListEditor:
{
result.setInfo (T("Show Plugin List"), T("Show plugin list window"), CommandCategories::file, 0);
result.addDefaultKeypress (T('p'), cmd);
result.setActive (true);
break;
}
//----------------------------------------------------------------------------------------------
#ifndef JOST_VST_PLUGIN
case CommandIDs::audioOptions:
{
result.setInfo (T("Audio & MIDI Settings..."), T("Show device manager"), CommandCategories::audio, 0);
// result.addDefaultKeypress (KeyPress::backspaceKey, none);
result.setActive (true);
break;
}
#endif
case CommandIDs::audioPlay:
{
result.setInfo (T("Play"), T("Play sequencers"), CommandCategories::audio, 0);
if (! transport->isPlaying())
result.addDefaultKeypress (KeyPress::spaceKey, none);
result.setActive (! transport->isPlaying());
break;
}
case CommandIDs::audioPlayPause:
{
if (transport->isPlaying())
result.setInfo (T("Pause"), T("Pause sequencers"), CommandCategories::audio, 0);
else
result.setInfo (T("Play"), T("Play sequencers"), CommandCategories::audio, 0);
result.addDefaultKeypress (KeyPress::spaceKey, none);
break;
}
case CommandIDs::audioStop:
{
result.setInfo (T("Stop"), T("Stop sequencers"), CommandCategories::audio, 0);
if (transport->isPlaying())
result.addDefaultKeypress (KeyPress::spaceKey, none);
result.setActive (transport->isPlaying());
break;
}
case CommandIDs::audioRecord:
{
result.setInfo (T("Record"), T("Activate recording"), CommandCategories::audio, 0);
result.addDefaultKeypress (T('r'), cmd);
result.setTicked (transport->isRecording());
result.setActive (true);
break;
}
case CommandIDs::audioRewind:
{
result.setInfo (T("Rewind"), T("Rewind sequencers"), CommandCategories::audio, 0);
result.addDefaultKeypress (KeyPress::backspaceKey, none);
result.setActive (transport->getPositionInFrames() != 0);
break;
}
case CommandIDs::audioLoop:
{
result.setInfo (T("Looping"), T("Loop sequencers"), CommandCategories::audio, 0);
result.addDefaultKeypress (T('l'), cmd);
result.setTicked (transport->isLooping());
result.setActive (true);
break;
//.........这里部分代码省略.........