/*
 * hifi_mpeg.h:
 *
 * Copyright (c) 2000 James McKenzie <james@fishsoup.dhs.org>,
 * All rights reserved.
 *
 */

/*
 * $Id: hifi_mpeg.h,v 1.1 2002/04/02 10:07:18 root Exp root $
 */

/*
 * $Log: hifi_mpeg.h,v $
 * Revision 1.1  2002/04/02 10:07:18  root
 * Initial revision
 *
 */

#ifndef __HIFI_MPEG_H__
#define __HIFI_MPEG_H__


#define HIFI_ST_MPEG_STATE	HIFI_ST(HIFI_CLASS_MPEG,1)
#define HIFI_ST_MPEG_LIST	HIFI_ST(HIFI_CLASS_MPEG,2)
#define HIFI_ST_MPEG_GPNAME	HIFI_ST(HIFI_CLASS_MPEG,3)
#define HIFI_ST_MPEG_BUFFER	HIFI_ST(HIFI_CLASS_MPEG,5)



#define HIFI_CMD_MPEG_PLAY	HIFI_CMD(HIFI_CLASS_MPEG,1)
#define HIFI_CMD_MPEG_SEEK	HIFI_CMD(HIFI_CLASS_MPEG,2)
#define HIFI_CMD_MPEG_SEARCH	HIFI_CMD(HIFI_CLASS_MPEG,3)
#define HIFI_CMD_MPEG_RESCAN	HIFI_CMD(HIFI_CLASS_MPEG,4)


typedef struct
  {
    Byte min;
    Byte sec;
  }
HIFI_PACKED
  Hifi_MPEG_Time;

// Can't use enum
#define  HIFI_MPEG_State_Stopped	0
#define  HIFI_MPEG_State_Paused   	1
#define  HIFI_MPEG_State_Playing	2
#define  HIFI_MPEG_State_Error		3
#define  HIFI_MPEG_State_Unknown  255

typedef struct
  {
    Hifi_ST_Header header;
    Byte state;
    Hifi_MPEG_Time position;
    Word length;
  }
HIFI_PACKED
  Hifi_ST_MPEG_State;


#endif __HIFI_MPEG_H__
