clearqueue.c 524 Bytes

#include <ultra64.h>

#ifndef	_LONGCMD
#include <leo.h>
#else
#include <leosp.h>
#endif

extern 	s32	__leoActive;

s32 LeoClearQueue(void)
{
  LEOCmdClearQue	cmdBlock;
  
  /* 
   * Check for existence of Leo Manager 
   */
  if (!__leoActive) {
    return(-1);
  }
  
  /*
   * Fill up command block
   */
  cmdBlock.header.command	= LEO_COMMAND_CLEAR_QUE;
  cmdBlock.header.reserve1	= 0;
  cmdBlock.header.control	= 0;
  cmdBlock.header.reserve3	= 0;

  leoCommand((void *)&cmdBlock);

  return 0;

} /* LeoClearQueue */