xp_comm_proj/cine/imgcache.c
/* routine: CachePlayback
 * purpose: Turn on or off playback
 */
CachePlayback
purpose: Turn on or off playback
CachePlayback purpose : Turn on or off playback
int CachePlayback(OMobj_id obj_id, OMevent_mask event_mask, int seq_num)
{
  CacheInfo *cache;
  int playback;
  if( (cache = GetCacheInfo( obj_id )) == NULL )
    return( 0 );
  playback = 0;
  OMget_name_int_val( obj_id, OMstr_to_name("playback"), &playback );
  if( playback && cache->capture )
    {
      OMset_name_int_val( obj_id, OMstr_to_name("capture"), 0 );
      SetCacheCapture( 0, cache );
    }
  cache->playback = playback;
  return( 1 );
}
int CachePlayback ( OMobj_id obj_id , OMevent_mask event_mask , int seq_num ) { CacheInfo * cache ; int playback ; if ( ( cache = GetCacheInfo ( obj_id ) ) == NULL ) return ( 0 ) ; playback = 0 ; OMget_name_int_val ( obj_id , OMstr_to_name ( " " ) , & playback ) ; if ( playback && cache -> capture ) { OMset_name_int_val ( obj_id , OMstr_to_name ( " " ) , 0 ) ; SetCacheCapture ( 0 , cache ) ; } cache -> playback = playback ; return ( 1 ) ; }
routine: CachePlayback
 purpose: Turn on or off playback
routine : CachePlayback purpose : Turn on or off playback
/* Get pointer to control structure
   */ /* Get new value of playback
   */ /* If in capture mode, disable this before starting playback
   */