Exemplo n.º 1
0
bool CGUIWindowPVRGuide::OnContextButtonStopRecord(CFileItem *item, CONTEXT_BUTTON button)
{
  bool bReturn = false;

  if (button == CONTEXT_BUTTON_STOP_RECORD)
  {
    StopRecordFile(item);
    bReturn = true;
  }

  return bReturn;
}
Exemplo n.º 2
0
void ResetVOIP ( VOIP_STRUCT *pOneVOIP, Acs_Evt_t *pAcsEvt )
{
	if (pOneVOIP == NULL || pAcsEvt == NULL)
		return ;

	// free the used Voice Resource
	if ( pOneVOIP->VocDevID.m_s16DeviceMain > 0 )
	{
		StopPlayFile ( &pOneVOIP->VocDevID );
		StopRecordFile(&pOneVOIP->VocDevID);	

		FreeOneFreeVoice (  &pOneVOIP->VocDevID );

		memset ( &M_OneVoice(pOneVOIP->VocDevID).UsedDevID,	0, sizeof(DeviceID_t) );		// 0表示还没有分配 Device 
		memset ( &pOneVOIP->VocDevID, 0, sizeof(DeviceID_t) );		// 0表示还没有分配 Device
		DrawMain_VocInfo ( pOneVOIP );
	}

	InitVOIPChannel ( pOneVOIP );
}