123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #ifndef NULLSOFT_WINAMP_IN2H
- #define NULLSOFT_WINAMP_IN2H
- #include "out.h"
- #define IN_UNICODE 0x0F000000
- #ifdef UNICODE_INPUT_PLUGIN
- #define in_char wchar_t
- #define IN_VER (IN_UNICODE | 0x100)
- #else
- #define in_char char
- #define IN_VER 0x100
- #endif
- #define IN_MODULE_FLAG_USES_OUTPUT_PLUGIN 1
- #define IN_MODULE_FLAG_EQ 2
- #define IN_MODULE_FLAG_REPLAYGAIN 8
- #define IN_MODULE_FLAG_REPLAYGAIN_PREAMP 16
- typedef struct
- {
- int version;
- char *description;
- HWND hMainWindow;
- HINSTANCE hDllInstance;
- char *FileExtensions;
-
-
- int is_seekable;
- int UsesOutputPlug;
-
- void (*Config)(HWND hwndParent);
- void (*About)(HWND hwndParent);
- void (*Init)();
- void (*Quit)();
- #define GETFILEINFO_TITLE_LENGTH 2048
-
- void (*GetFileInfo)(const in_char *file, in_char *title, int *length_in_ms);
- #define INFOBOX_EDITED 0
- #define INFOBOX_UNCHANGED 1
- int (*InfoBox)(const in_char *file, HWND hwndParent);
- int (*IsOurFile)(const in_char *fn);
-
- int (*Play)(const in_char *fn);
- void (*Pause)();
- void (*UnPause)();
- int (*IsPaused)();
- void (*Stop)();
-
- int (*GetLength)();
- int (*GetOutputTime)();
- void (*SetOutputTime)(int time_in_ms);
-
- void (*SetVolume)(int volume);
- void (*SetPan)(int pan);
-
-
- void (*SAVSAInit)(int maxlatency_in_ms, int srate);
-
- void (*SAVSADeInit)();
-
- void (*SAAddPCMData)(void *PCMData, int nch, int bps, int timestamp);
-
-
- int (*SAGetMode)();
- int (*SAAdd)(void *data, int timestamp, int csa);
-
-
- void (*VSAAddPCMData)(void *PCMData, int nch, int bps, int timestamp);
-
-
- int (*VSAGetMode)(int *specNch, int *waveNch);
- int (*VSAAdd)(void *data, int timestamp);
-
- void (*VSASetInfo)(int srate, int nch);
-
-
-
-
- int (*dsp_isactive)();
-
-
- int (*dsp_dosamples)(short int *samples, int numsamples, int bps, int nch, int srate);
-
- void (*EQSet)(int on, char data[10], int preamp);
-
- void (*SetInfo)(int bitrate, int srate, int stereo, int synched);
- Out_Module *outMod;
- } In_Module;
- #define IN_PLUGIN_UNINSTALL_NOW 0x1
- #define IN_PLUGIN_UNINSTALL_REBOOT 0x0
- #endif
|