1
/* This is part of the TuneNet XMP plugin
2
* written by Chris Young <chris@unsatisfactorysoftware.co.uk>
3
* based on an example plugin by Paul Heams
7
#include <proto/exec.h>
9
#include <utility/tagitem.h>
10
#include "include/proto/TNPlug.h"
11
#include "include/libraries/TNPlug.h"
14
#include "include/LibBase.h"
15
#include "include/TN_XMP.tnplug_rev.h"
17
struct audio_player * _TNPlug_AnnouncePlayer(struct TNPlugIFace *Self, ULONG version)
19
static struct audio_player my_player =
21
"XMP", // ** As reported in TuneNet (keep this short).
22
"Chris Young\nusing XMP code by\nClaudio Matsuoka and Hipolito Carraro Jr\nhttp://xmp.sourceforge.net", // ** 127 chars max!
23
"Extended Module Player",
24
"", // ** Extentions (.mp3) comma seperated (mp3,mp2) ** (16 chars max)
25
(char *) NULL, // ** Pointer to pattern match string - IGNORE for now **
26
(struct Library *) NULL, // ** TN PRIVATE :- These Must be left NULL **
27
(struct Interface *) NULL, // ** TN PRIVARE :- These Must be left NULL **
28
0, // ** BOOL -- IGNORE **
29
PLM_File, // ** PlayModes accepted (OR together)
31
PLUGIN_API_VERSION, // Version MMrrmm 10000 = Version 1
32
VER*10000 + REV*100 + SUB, //020701 (2.7.1)
37
struct TNPlugLibBase * MyBase;
38
MyBase = (struct TNPlugLibBase *)Self->Data.LibBase;
40
/* Returns information about the player if better than version 0.70, otherwise fail. */
41
if (version >= 7600) return &my_player;
42
else return (struct audio_player *) 0;