Sending a Custom Mark#

To send a custom mark with the PVRScopeComms library:

  1. Create a title for the mark

std::string customMarkTitle = "Custom Mark";
  1. Send the mark to PVRTune.

pplSendMark(PVRScopeComms, customMarkTitle.c_str(), (unsignedint)customMarkTitle.length());

Full Source Code#

/*********************************************************************************************
*
* This example code consists of four steps:
*
* 1. Setup PVRScopeComms
* 2. Create a Custom Mark
* 3. Send the Custom Mark to PVRTune
* 4. Shutdown PVRScopeComms
*
*********************************************************************************************/

#include "PVRScopeComms.h"

// Step 1. Setup PVRScopeComms
SSPSCommsData* PVRScopeComms;
std::string timelineTitle = "Example";
PVRScopeComms = pplInitialise(timelineTitle,
                              (unsigned int)timelineTitle.length());

// Step 2. Create a Custom Mark
std::string customMarkTitle = "Custom Mark";

// Step 3. Send the Custom Mark to PVRTune
if(!pplSendMark(PVRScopeComms,
                 customMarkTitle.c_str(),
                (unsigned int)customMarkTitle.length()))
{
    // Error handling goes here
}
// Step 4. Shutdown PVRScopeComms
pplShutdown(PVRScopeComms);