aboutsummaryrefslogtreecommitdiff
path: root/src/visualizations/Milkdrop/vis_milkdrop/defines.h
blob: a1361e18b3f912d8ec89a31cc4c54c0dd3b34590 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*
  LICENSE
  -------
Copyright 2005 Nullsoft, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:

  * Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer. 

  * Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution. 

  * Neither the name of Nullsoft nor the names of its contributors may be used to 
    endorse or promote products derived from this software without specific prior written permission. 
 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/
#ifndef __NULLSOFT_DX8_PLUGIN_SHELL_DEFINES_H__
#define __NULLSOFT_DX8_PLUGIN_SHELL_DEFINES_H__ 1

// APPNAME should be something like "MyPlugin 1.0".
// This is the name that will appear in Winamp's list of installed plugins.
// Try to include the version number with the name.
// Note: to change the name of the *file* (DLL) that the plugin is
//   compiled to, go to Project Settings -> Link tab -> and change the
//   'output file name'.  Don't forget to do it for both Debug AND 
//   Release builds!
#define SHORTNAME        "MilkDrop" // used as window caption.  avoid numbers or punctuation; when 'integrate with winamp' option is enabled, these characters don't always work with all skins.
#define LONGNAME         "MilkDrop 1.04b" // appears at bottom of config panel

// INT_VERSION is the major version #, multipled by 100 (ie. version 1.02 
// would be 102).  If the app goes to read in the INI file and sees that
// the INI file is from an older version of your plugin, it will ignore
// their old settings and reset them to the defaults for the new version;
// but that only works if you keep this value up-to-date.  ***To disable this
// behavior, just always leave this at 100. ***
#define INT_VERSION     104
// INT_SUBVERSION is the minor version #, counting up from 0 as you do 
// mini-releases.  If the plugin goes to read the old INI file and sees that
// the major version # is the same but the minor version # is not, it will, 
// again, ignore their old settings and reset them to the defaults for the 
// new version.  ***To disable this behavior, just always leave this at 0. ***
#define INT_SUBVERSION  1

// INIFILE is the name of the .INI file that will save the user's
// config panel settings.  Do not include a path; just give the filename.
// The actual file will be stored in the WINAMP\PLUGINS directory.
#define INIFILE         "milkdrop_config.ini"    

// DOCFILE is the name of the documentation file that you'll write
// for your users.  Do not include a path; just give the filename.
// When a user clicks the 'View Docs' button on the config panel,
// the plugin will try to display this file, located in the 
// WINAMP\PLUGINS directory.  
//
// ***Note that the button will be invisible (on the config panel) 
// at runtime if this string is empty.***
#define DOCFILE         "milkdrop.html"     // set this to something like "myplugin.html"    

// PLUGIN_WEB_URL is the web address of the homepage for your plugin.
// It should be a well-formed URL (http://...).  When a user clicks
// the 'View Webpage' button on the config panel, the plugin will 
// launch their default browser to display this page.  
//
// ***Note that the button will be invisible (on the config panel) 
// at runtime if this string is empty.***
#define PLUGIN_WEB_URL  "http://www.nullsoft.com/free/milkdrop/"   // set this to something like "http://www.myplugin.com/"    

// The following two strings - AUTHOR_NAME and COPYRIGHT - will be used 
// in a little box in the config panel, to identify the author & copyright 
// holder of the plugin.  Keep them short so they fit in the box.
#define AUTHOR_NAME     "Ryan Geiss"
#define COPYRIGHT       "(c) 2001-2003 Nullsoft, Inc."

// CLASSNAME is the name of the window class that the plugin will
// use.  You don't want this to overlap with any other plugins
// or applications that are running, so change this to something 
// that will probably be unique.  For example, if your plugin was
// called Libido, then "LibidoClass" would probably be a safe bet.
#define CLASSNAME       "MilkDrop"

// Here you can give names to the buttons (~tabs) along the top
// of the config panel.  Each button, when clicked, will bring
// up the corresponding 'property page' (embedded dialog),
// IDD_PROPPAGE_1 through IDD_PROPPAGE_8.  If you want less than
// 8 buttons to show up, just leave their names as blank.  For
// full instructions on how to add a new tab/page, see
// DOCUMENTATION.TXT.
#define CONFIG_PANEL_BUTTON_1 "common settings"     // nPage==1
#define CONFIG_PANEL_BUTTON_2 "customizations"      // nPage==2
#define CONFIG_PANEL_BUTTON_3 "more options"        // nPage==3
#define CONFIG_PANEL_BUTTON_4 "transitions"         // nPage==4
#define CONFIG_PANEL_BUTTON_5 ""                    // nPage==5
#define CONFIG_PANEL_BUTTON_6 ""                    // nPage==6
#define CONFIG_PANEL_BUTTON_7 ""                    // nPage==7
#define CONFIG_PANEL_BUTTON_8 ""                    // nPage==8

// adjust the defaults for the 4 built-in fonts here.
//   (note: if you want the font to be available on 98 + ME + 2k + XP, use one of the following...)
//     arial
//     courier 10-12-15
//     courier new
//     comic san[s] ms
//     lucida console
//     ms sans serif
//     ms serif
//     small fonts
//     symbol 8-10-12-14-18-24
//     tahoma
//     times new roman
//     verdana
//     webdings
#define SIMPLE_FONT_DEFAULT_FACE "Courier" //"MS Sans Serif"  - changed to Courier because menus + code FAR more legible!
#define SIMPLE_FONT_DEFAULT_SIZE 12 //16
#define SIMPLE_FONT_DEFAULT_BOLD 0
#define SIMPLE_FONT_DEFAULT_ITAL 0
#define SIMPLE_FONT_DEFAULT_AA   0
#define DECORATIVE_FONT_DEFAULT_FACE "Times New Roman" 
#define DECORATIVE_FONT_DEFAULT_SIZE 24
#define DECORATIVE_FONT_DEFAULT_BOLD 0
#define DECORATIVE_FONT_DEFAULT_ITAL 1
#define DECORATIVE_FONT_DEFAULT_AA   1
#define HELPSCREEN_FONT_DEFAULT_FACE "MS Sans Serif" 
#define HELPSCREEN_FONT_DEFAULT_SIZE 14  // NOTE: should fit on 640x480 screen!
#define HELPSCREEN_FONT_DEFAULT_BOLD 1
#define HELPSCREEN_FONT_DEFAULT_ITAL 0
#define HELPSCREEN_FONT_DEFAULT_AA   0
#define PLAYLIST_FONT_DEFAULT_FACE "Arial" 
#define PLAYLIST_FONT_DEFAULT_SIZE 16      
#define PLAYLIST_FONT_DEFAULT_BOLD 0
#define PLAYLIST_FONT_DEFAULT_ITAL 0
#define PLAYLIST_FONT_DEFAULT_AA   0

// automatically add extra fonts to the config panel 
// by simply #defining them here, UP TO A MAX OF 5 EXTRA FONTS.
// access the font by calling GetFont(EXTRA_1) for extra font #1,
// GetExtraFont(EXTRA_2) for extra font #2, and so on.
#define NUM_EXTRA_FONTS 2  // <- don't exceed 5 here!
#define TOOLTIP_FONT EXTRA_1
#define EXTRA_FONT_1_NAME         "Tooltips"
#define EXTRA_FONT_1_DEFAULT_FACE "Arial"
#define EXTRA_FONT_1_DEFAULT_SIZE 14        
#define EXTRA_FONT_1_DEFAULT_BOLD 0
#define EXTRA_FONT_1_DEFAULT_ITAL 0
#define EXTRA_FONT_1_DEFAULT_AA   0
#define SONGTITLE_FONT EXTRA_2
#define EXTRA_FONT_2_NAME         "Animated Songtitles"
#define EXTRA_FONT_2_DEFAULT_FACE "Times New Roman"
#define EXTRA_FONT_2_DEFAULT_SIZE 22        
#define EXTRA_FONT_2_DEFAULT_BOLD 0
#define EXTRA_FONT_2_DEFAULT_ITAL 1
#define EXTRA_FONT_2_DEFAULT_AA   1

#define WINDOWCAPTION   SHORTNAME    // the caption that will appear on the plugin window
#define DLLDESC         LONGNAME     // the desc. of this DLL, as it appears in Winamp's list of viz plugins
#define MODULEDESC      LONGNAME     // the desc. of this viz module within the DLL (..this framework is set up for just 1 module per DLL)

// Finally, a few parameters that will control how things are done
// inside the plugin shell:
#define NUM_WAVEFORM_SAMPLES         480   // RANGE: 32-576.  This is the # of samples of waveform data that you want.
                                           //   Note that if it is less than 576, then VMS will do its best
                                           //   to line up the waveforms from frame to frame for you, using 
                                           //   the extra samples as 'squish' space.
                                           // Note: the more 'slush' samples you leave, the better the alignment
                                           //   will be.  512 samples gives you decent alignment; 400 samples
                                           //   leaves room for fantastic alignment.  
                                           // Observe that if you specify a value here (say 400) and then only 
                                           //   render a sub-portion of that in some cases (say, 200 samples),
                                           //   make sure you render the *middle* 200 samples (#100-300), because
                                           //   the alignment happens *mostly at the center*.
#define NUM_FREQUENCIES              512   // # of freq. samples you want *out* of the FFT, for 0-11kHz range.
                                           //   ** this must be a power of 2!
                                           //   ** the actual FFT will use twice this many frequencies **

#define TEXT_MARGIN                  10    // the # of pixels of margin to leave between text and the edge of the screen
#define PLAYLIST_INNER_MARGIN        4     // the extra margin between the playlist box and the text inside

#define PLAYLIST_COLOR_PLAYING_TRACK 0xFFCCFF00 // alpha|red|green|blue
#define PLAYLIST_COLOR_HILITE_TRACK  0xFFFF5050
#define PLAYLIST_COLOR_BOTH          0xFFFFCC22
#define PLAYLIST_COLOR_NORMAL        0xFFCCCCCC

#define MENU_COLOR    0xFFCCCCCC
#define MENU_HILITE_COLOR 0xFFFF4400
#define DIR_COLOR     0xFF88CCFF
#define TOOLTIP_COLOR 0xFFBBBBCC

#define MAX_PRESETS_PER_PAGE 32

#define PRESS_F1_MSG                 "Press F1 for Help " // leave extra space @ end, so italicized fonts don't get clipped
#define PRESS_F1_DUR                 3.0f // in seconds  
#define PRESS_F1_EXP                 10.0f // exponent for how quickly it accelerates to leave the screen. 1 = linear; >1 = stays & then dashes off @ end


#endif