You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/mpeglib/example/yaf/yafxplayer/xplayerCommand.defs

85 lines
2.4 KiB

/*
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