#ifndef UADE_PLAYER_H
#define UADE_PLAYER_H

#include "uade_tnplug.h"
#include "uadestate.h"

struct PlayerState {
	struct TNDecHandle *handle;
	struct uade_state *state;
	uint8_t *space;
	uint8_t *sampledata;
	int playbytes;
	int jump_sub;
	int song_end_trigger;
	int subsong_end;
	int next_song;
	int left;
	int what_was_left;
	int tailbytes;
	int64_t subsong_bytes;
	enum uade_control_state controlstate;
};

BOOL InitPlayer (struct PlayerState *ps);
void ExitPlayer (struct PlayerState *ps);
BOOL PlayerFunc (struct PlayerState *ps);

#endif

