~ubuntu-branches/ubuntu/oneiric/xmp/oneiric

« back to all changes in this revision

Viewing changes to src/plugin/tunenet/AnnouncePlayer.c

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-01-15 01:15:22 UTC
  • mfrom: (1.1.8 upstream) (4.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100115011522-r4otlsg687ee1yx4
Tags: 3.0.0+20090923-1ubuntu1
* Merge from debian testing (LP: #507732).  Reamining changes:
  + Add PulseAudio support:
    - debian/rules: Add --enable-pulseaudio to ./configure
  + RFE Compile with 128 bit mixer:
    - dpatch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
4
 */
 
5
 
 
6
#include <exec/exec.h>
 
7
#include <proto/exec.h>
 
8
#include <dos/dos.h>
 
9
#include <utility/tagitem.h>
 
10
#include "include/proto/TNPlug.h"
 
11
#include "include/libraries/TNPlug.h"
 
12
#include <stdarg.h>
 
13
 
 
14
#include "include/LibBase.h"
 
15
#include "include/TN_XMP.tnplug_rev.h"
 
16
 
 
17
struct audio_player * _TNPlug_AnnouncePlayer(struct TNPlugIFace *Self, ULONG version)
 
18
{
 
19
        static struct audio_player my_player =
 
20
   {
 
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)
 
30
                aPlayer_SEEK,
 
31
                PLUGIN_API_VERSION,                                                                                                                                                             // Version MMrrmm 10000 = Version 1
 
32
                VER*10000 + REV*100 + SUB,  //020701 (2.7.1)
 
33
                NULL,
 
34
                TN_PRI_Normal,
 
35
                0
 
36
        };
 
37
        struct  TNPlugLibBase * MyBase;
 
38
        MyBase = (struct TNPlugLibBase *)Self->Data.LibBase;
 
39
 
 
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;
 
43
}