예제 #1
0
void FModSound::soundEnded(FMOD::Channel *channel)
{
    UInt32 ChannelID(getChannelID(channel));

    if(ChannelID != 0)
    {
        removeChannel(ChannelID);
        produceSoundEnded(ChannelID);
    }
}
예제 #2
0
QString SettingsManager::getACportAndChannelID(const QString &key)
{
    QString str = "AcquisitionPort%1";
//    qDebug()<<"key"<<key;
    QString map;int channel;
    int ACPortcount = getAc_PortSize();
//    qDebug()<<"ACPortcount"<<ACPortcount;
    for(int i = 1;i <= ACPortcount;i++){
        QString ch_constant = getChannelID(str.arg(QString::number(i,10)),key);
//        qDebug()<<"ch_constant"<<ch_constant;
        if(!ch_constant.isEmpty()){
            channel = ch_constant.toUInt();
            map = QString::number(i,10)+","+ch_constant;/*QString::number(channel,10);*/
//            qDebug()<<"map"<<map;
            return map;
        }
    }
    return "";
}
예제 #3
0
		JString& RaiseEventOptions::toString(JString& retStr, bool withTypes) const
		{
			return retStr += JString(L"{channelID=") + getChannelID() + L", eventCaching=" + getEventCaching() + L", targetPlayers=" + JVector<int>(getTargetPlayers(), static_cast<unsigned int>(getNumTargetPlayers())).toString() + L", receiverGroup=" + getReceiverGroup()+ L", interestGroup" + getInterestGroup()+ L", forwardToWebhook=" + getForwardToWebhook() + L", cacheSliceIndex" + getCacheSliceIndex() + L"}";
		}
예제 #4
0
const std::string DBBComServer::getPairData()
{
    std::string channelData = "{\"id\":\""+getChannelID()+"\",\"key\":\""+getAESKeyBase58()+"\"}";
    return channelData;
}