summaryrefslogtreecommitdiffstats
path: root/mpeglib/example/yaf/yafxplayer/xplayerCommand.defs
blob: 853eb2eb6b8088f0835ee9e0268093182bb61725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
  definition file for generic decoder commands
  Copyright (C) 1998  Martin Vogt

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU Library General Public License as published by
  the Free Software Foundation.

  For more information look at the file COPYRIGHT in this package

 */


#ifndef __XPLAYER_COMMAND_DEFS
#define __XPLAYER_COMMAND_DEFS

#include "../yafcore/commandTable.h"   // defines CommandDesc-Struct...

// Command Numbers

#define _PLAYER_ON	   _CT_START+1
#define _PLAYER_OFF        _CT_START+2
#define _PLAYER_OPEN       _CT_START+3
#define _PLAYER_CLOSE      _CT_START+4

#define _PLAYER_PLAY       _CT_START+5
#define _PLAYER_PAUSE      _CT_START+6
#define _PLAYER_VERBOSE	   _CT_START+7 
#define _PLAYER_JUMP	   _CT_START+8


#define _PLAYER_OUTPUTFILE	_CT_START+9
#define _PLAYER_CLOSEOUTPUTFILE	_CT_START+10
#define _PLAYER_INTERNALAUDIO   _CT_START+11
#define _PLAYER_SLEEP		_CT_START+12
#define _PLAYER_UPDATE		_CT_START+13
#define _PLAYER_CLEAR		_CT_START+14
#define _PLAYER_MUSICINFO	_CT_START+15


#define _XPLAYER_START     _CT_START+100


// The commands as String. The Syntax is :
// 

//  { lexternalUse,lReturnMsg,longName,shortName,number,helpText }
// 
// lexternal use ist true when the text should be written when 
// user enters "help"

#ifdef _USE_XPLAYER_STRUC
static struct CommandDescriptionStruct xplayerCommands[]={

  { 1,1,"on","",_PLAYER_ON,"turn decoder ON"},
  { 1,1,"off","",_PLAYER_OFF,"turn it OFF"},
  { 1,1,"open","o",_PLAYER_OPEN,"open <filename>"},
  { 1,1,"close","c",_PLAYER_CLOSE,"closes current file "},
  { 1,1,"play" ,"p",_PLAYER_PLAY,"plays the mpeg file" },
  { 1,1,"verbose" ,"v",_PLAYER_VERBOSE,"verbose [on|off] info about player" },
  { 1,1,"jump" ,"j",_PLAYER_JUMP,"jump [+|-]<second>" },
  { 1,1,"pause" ,"a",_PLAYER_PAUSE,"pauses playing mpeg file"},
  { 1,1,"update" ,"",_PLAYER_UPDATE,"checks state of plugin"},
  { 1,1,"clear" ,"",_PLAYER_CLEAR,"usefull loopback for frontends"},
  { 1,1,"musicinfo" ,"",_PLAYER_MUSICINFO,"print useful info about stream"},
  { 1,1,"outputfile" ,"",_PLAYER_OUTPUTFILE,"outputfile foo.txt" },	
  { 1,1,"closeoutputfile" ,"",_PLAYER_CLOSEOUTPUTFILE,
	"closes the outputfile " },
  { 1,1,"sleep" ,"",_PLAYER_SLEEP,"sleep for x seconds"},
  {1,1,"audio" ,"",_PLAYER_INTERNALAUDIO,
       "audio [on|off] for internal audiodevice" }

};
#endif


// How much Commands are in the Array :
#define XPLAYERCOMMANDS_SIZE 15



#endif