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

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

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

#ifndef __HIFI_WAVE_H__
#define __HIFI_WAVE_H__


#define HIFI_ST_WAVE_STATE	HIFI_ST(HIFI_CLASS_WAVE,1)
#define HIFI_ST_WAVE_LIST	HIFI_ST(HIFI_CLASS_WAVE,2)
#define HIFI_ST_WAVE_SOURCE	HIFI_ST(HIFI_CLASS_WAVE,4)


#define HIFI_CMD_WAVE_PLAY	HIFI_CMD(HIFI_CLASS_WAVE,1)
#define HIFI_CMD_WAVE_SEEK	HIFI_CMD(HIFI_CLASS_WAVE,2)
#define HIFI_CMD_WAVE_RESCAN	HIFI_CMD(HIFI_CLASS_WAVE,3)
#define HIFI_CMD_WAVE_SOURCE	HIFI_CMD(HIFI_CLASS_WAVE,4)

#define HIFI_WAVE_Source_CD	1
#define HIFI_WAVE_Source_Tuner	2
#define HIFI_WAVE_Source_SPDIF	4


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

// Can't use enum
#define  HIFI_WAVE_State_Stopped	0
#define  HIFI_WAVE_State_Paused   	1
#define  HIFI_WAVE_State_Recording   	2
#define  HIFI_WAVE_State_Playing	3
#define  HIFI_WAVE_State_Error		4
#define  HIFI_WAVE_State_Unknown  255

typedef struct
  {
    Hifi_ST_Header header;
    Byte state;
    Hifi_WAVE_Time position;
    Word length;
  }
HIFI_PACKED
  Hifi_ST_WAVE_State;


#endif __HIFI_WAVE_H__
