本文整理汇总了C++中TMMFMessage::WriteDataToClientL方法的典型用法代码示例。如果您正苦于以下问题:C++ TMMFMessage::WriteDataToClientL方法的具体用法?C++ TMMFMessage::WriteDataToClientL怎么用?C++ TMMFMessage::WriteDataToClientL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TMMFMessage
的用法示例。
在下文中一共展示了TMMFMessage::WriteDataToClientL方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoPercussionKeyNameL
TBool CMidiCustomCommandParser::DoPercussionKeyNameL(TMMFMessage& aMessage)
{
TPckgBuf<TMMFMidiConfig2> pckg;
aMessage.ReadData1FromClientL(pckg);
// Prevent memory leaks by deleting old key name - something must have gone wrong in the client
// if it already exists
delete iPercussionKeyName;
iPercussionKeyName = NULL;
const TDesC& percussionKeyName = iImplementor.MmcPercussionKeyNameL(pckg().iNote, pckg().iBankId, pckg().iCustom, pckg().iInstrumentId);
iPercussionKeyName = CBufFlat::NewL(32);
RBufWriteStream stream;
stream.Open(*iPercussionKeyName);
CleanupClosePushL(stream);
stream << percussionKeyName;
CleanupStack::PopAndDestroy();//s
// Write the size of the descriptor back to the client
TPckgBuf<TInt> descriptorSizePckg(iPercussionKeyName->Ptr(0).Length());
aMessage.WriteDataToClientL(descriptorSizePckg);
return ETrue;
}
示例2: pckg
// -----------------------------------------------------------------------------
// CRa8CustomInterfaceMsgHdlr::DoFrameNumberL
// Handles the message from the proxy and calls the custom interface method.
// The data passed from the proxy is read from the message and passed to
// the custom interface.
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CRa8CustomInterfaceMsgHdlr::DoFrameNumberL(TMMFMessage& aMessage)
{
TInt frame = iRa8CustomInterface->FrameNumber();
TPckgBuf<TInt> pckg(frame);
aMessage.WriteDataToClientL(pckg);
aMessage.Complete(KErrNone);
}
示例3: DoDurationMicroBeatsL
TBool CMidiCustomCommandParser::DoDurationMicroBeatsL(TMMFMessage& aMessage)
{
TInt64 duration;
iImplementor.MmcDurationMicroBeatsL(duration);
TPckgBuf<TMMFMidiConfig2> pckg;
pckg().iDurationMicroBeats = duration;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例4: DoPitchTranspositionCentsL
TBool CMidiCustomCommandParser::DoPitchTranspositionCentsL(TMMFMessage& aMessage)
{
TInt pitch;
iImplementor.MmcPitchTranspositionCentsL(pitch);
TPckgBuf<TMMFMidiConfig1> pckg;
pckg().iPitch = pitch;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例5: DoTempoMicroBeatsPerMinuteL
TBool CMidiCustomCommandParser::DoTempoMicroBeatsPerMinuteL(TMMFMessage& aMessage)
{
TInt microBeatsPerMinute;
iImplementor.MmcTempoMicroBeatsPerMinuteL(microBeatsPerMinute);
TPckgBuf<TMMFMidiConfig1> pckg;
pckg().iTempo = microBeatsPerMinute;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例6: DoGetBalanceL
TBool CMidiCustomCommandParser::DoGetBalanceL(TMMFMessage& aMessage)
{
TInt balance;
iImplementor.MmcGetBalanceL(balance);
TPckgBuf<TMMFMidiConfig1> pckg;
pckg().iBalance = balance;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例7: DoPositionMicroBeatsL
TBool CMidiCustomCommandParser::DoPositionMicroBeatsL(TMMFMessage& aMessage)
{
TInt64 microBeats = 0;
iImplementor.MmcPositionMicroBeatsL(microBeats);
TPckgBuf<TMMFMidiConfig2> pckg;
pckg().iPositionMicroBeats = microBeats;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例8: DoMaxVolumeL
TBool CMidiCustomCommandParser::DoMaxVolumeL(TMMFMessage& aMessage)
{
TInt maxVol;
iImplementor.MmcMaxVolumeL(maxVol);
TPckgBuf<TMMFMidiConfig1> pckg;
pckg().iMaxVolume = maxVol;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例9: DoChannelsSupportedL
TBool CMidiCustomCommandParser::DoChannelsSupportedL(TMMFMessage& aMessage)
{
TInt channels;
iImplementor.MmcChannelsSupportedL(channels);
TPckgBuf<TMMFMidiConfig2> pckg;
pckg().iChannel = channels;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例10: DoStopTimeL
TBool CMidiCustomCommandParser::DoStopTimeL(TMMFMessage& aMessage)
{
TTimeIntervalMicroSeconds stopTime;
iImplementor.MmcStopTimeL(stopTime);
TPckgBuf<TMMFMidiConfig2> pckg;
pckg().iStopTime = stopTime;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例11: DoMaxPolyphonyL
TBool CMidiCustomCommandParser::DoMaxPolyphonyL(TMMFMessage& aMessage)
{
TInt maxNotes;
iImplementor.MmcMaxPolyphonyL(maxNotes);
TPckgBuf<TMMFMidiConfig1> pckg;
pckg().iMaxNotes = maxNotes;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例12: DoGetRepeatsL
TBool CMidiCustomCommandParser::DoGetRepeatsL(TMMFMessage& aMessage)
{
TInt numRepeats;
iImplementor.MmcGetRepeatsL(numRepeats);
TPckgBuf<TMMFMidiConfig1> pckg;
pckg().iNumRepeats = numRepeats;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例13: DoMinPlaybackRateL
TBool CMidiCustomCommandParser::DoMinPlaybackRateL(TMMFMessage& aMessage)
{
TInt minRate;
iImplementor.MmcMinPlaybackRateL(minRate);
TPckgBuf<TMMFMidiConfig3> pckg;
pckg().iPlayBackMinRate = minRate;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例14: DoNumberOfInstrumentsL
TBool CMidiCustomCommandParser::DoNumberOfInstrumentsL(TMMFMessage& aMessage)
{
TPckgBuf<TMMFMidiConfig2> pckg;
aMessage.ReadData1FromClientL(pckg);
TInt numInstruments;
iImplementor.MmcNumberOfInstrumentsL(pckg().iBankId, pckg().iCustom, numInstruments);
pckg().iNumInstruments = numInstruments;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}
示例15: DoChannelVolumeL
TBool CMidiCustomCommandParser::DoChannelVolumeL(TMMFMessage& aMessage)
{
TPckgBuf<TMMFMidiConfig2> pckg;
aMessage.ReadData1FromClientL(pckg);
TReal32 channelVol;
iImplementor.MmcChannelVolumeL(pckg().iChannel, channelVol);
pckg().iChannelVol = channelVol;
aMessage.WriteDataToClientL(pckg);
return ETrue;
}