Exemplo n.º 1
0
wxString EffectReverse::GetDescription()
{
   return XO("Reverses the selected audio");
}
Exemplo n.º 2
0
   extern "C" {
      struct id3_frame *id3_frame_new(char const *);
      id3_length_t id3_latin1_length(id3_latin1_t const *);
      void id3_latin1_decode(id3_latin1_t const *, id3_ucs4_t *);
   }
#endif

struct
{
   int format;
   const wxChar *name;
   const wxChar *desc;
}
static const kFormats[] =
{
   { SF_FORMAT_AIFF | SF_FORMAT_PCM_16,   wxT("AIFF"),   XO("AIFF (Apple) signed 16-bit PCM")    },
   { SF_FORMAT_WAV | SF_FORMAT_PCM_16,    wxT("WAV"),    XO("WAV (Microsoft) signed 16-bit PCM") },
   { SF_FORMAT_WAV | SF_FORMAT_FLOAT,     wxT("WAVFLT"), XO("WAV (Microsoft) 32-bit float PCM")  },
// { SF_FORMAT_WAV | SF_FORMAT_GSM610,    wxT("GSM610"), XO("GSM 6.10 WAV (mobile)")             },
};

//----------------------------------------------------------------------------
// Statics
//----------------------------------------------------------------------------

static int ReadExportFormatPref()
{
#if defined(__WXMAC__)
   return gPrefs->Read(wxT("/FileFormats/ExportFormat_SF1"),
                       (long int)(SF_FORMAT_AIFF | SF_FORMAT_PCM_16));
#else
void Webadmin_BuildServerStatus(xml_t* xmlobj, qboolean showfullguid)
{
	int i, numcl;
	client_t* cl;
	char strbuf[MAX_STRING_CHARS];
	char colorbuf[2048];
	mvabuf;
	char teamallies[32];
	char teamaxis[32];
	gclient_t *gclient;
	qboolean teambased = qfalse;
	qboolean ffabased = qfalse;
	char ssti[128];


	numcl = 0;

	for (cl = svs.clients, gclient = level.clients, i = 0; i < sv_maxclients->integer; i++, cl++, gclient++)
	{
		if (cl->state < CS_CONNECTED) {
			continue;
		}

		if(gclient->sess.cs.team == TEAM_RED || gclient->sess.cs.team == TEAM_BLUE)
		{
			teambased = qtrue;
			break;
		}
		if(gclient->sess.cs.team == TEAM_FREE)
		{
			ffabased = qtrue;
			break;
		}
	}


	XO1("table","class","table table-striped table-bordered cod4xtable");
	XA("<th>CID</th><th>Name</th><th>SteamID/PlayerID</th><th>Power</th><th>Score</th><th>Ping</th>");


	if(teambased)
	{


		if(!Q_strncmp(g_TeamName_Axis->string,"MPUI_SPETSNAZ", 13))
			Q_strncpyz(teamaxis, "Spetsnaz", sizeof(teamaxis));
		else if(!Q_strncmp(g_TeamName_Axis->string,"MPUI_OPFOR", 10))
			Q_strncpyz(teamaxis, "Opfor", sizeof(teamaxis));
		else
			Q_strncpyz(teamaxis, g_TeamName_Axis->string, sizeof(teamaxis));

		if(!Q_strncmp(g_TeamName_Allies->string,"MPUI_MARINES", 12))
			Q_strncpyz(teamallies, "Marines", sizeof(teamallies));
		else if(!Q_strncmp(g_TeamName_Allies->string,"MPUI_SAS", 8))
			Q_strncpyz(teamallies, "S.A.S.", sizeof(teamallies));
		else
			Q_strncpyz(teamallies, g_TeamName_Allies->string, sizeof(teamallies));

		XO("tr"); XO1("td", "colspan", "6");
		XA(teamaxis);
		XC; XC;
			for (cl = svs.clients, gclient = level.clients, i = 0; i < sv_maxclients->integer; i++, cl++, gclient++)
			{
				if (cl->state < CS_CONNECTED) {
					continue;
				}

				if(gclient->sess.cs.team != TEAM_RED)
				{
					continue;
				}

				++numcl;

				XO("tr");

					Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", i);//CID
					XA(strbuf);

					XO("td");//Name
					XA(Webadmin_ConvertToHTMLColor(cl->name, colorbuf, sizeof(colorbuf)));
					XC;

					XO("td");
					SV_SApiSteamIDToString(cl->playerid, ssti, sizeof(ssti));
					XA(ssti);
					XC;

					Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->power);//Ping
					XA(strbuf);

					Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", gclient->sess.scoreboard.score);//Score
					XA(strbuf);


					Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->ping);//Ping
					XA(strbuf);
				XC;
			}

		XO("tr"); XO1("td", "colspan", "6");
		XA(teamallies);
		XC; XC;
		for (cl = svs.clients, gclient = level.clients, i = 0; i < sv_maxclients->integer; i++, cl++, gclient++)
		{
			if (cl->state < CS_CONNECTED) {
				continue;
			}

			if(gclient->sess.cs.team != TEAM_BLUE)
			{
				continue;
			}

			++numcl;

			XO("tr");

			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", i);//CID
			XA(strbuf);

			XO("td");//Name
			XA(Webadmin_ConvertToHTMLColor(cl->name, colorbuf, sizeof(colorbuf)));
			XC;

			XO("td");//GUID
			SV_SApiSteamIDToString(cl->playerid, ssti, sizeof(ssti));
			XA(ssti);
			XC;

			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->power);//Ping
			XA(strbuf);

			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", gclient->sess.scoreboard.score);//Score
			XA(strbuf);


			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->ping);//Ping
			XA(strbuf);
			XC;
		}


	}else if(ffabased){

		XO("tr"); XO1("td", "colspan", "6");
		XA("Players");
		XC; XC;

		for (cl = svs.clients, gclient = level.clients, i = 0; i < sv_maxclients->integer; i++, cl++, gclient++)
		{
			if (cl->state < CS_CONNECTED) {
				continue;
			}

			if(gclient->sess.cs.team != TEAM_FREE)
			{
				continue;
			}

			++numcl;

			XO("tr");

			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", i);//CID
			XA(strbuf);

			XO("td");//Name
			XA(Webadmin_ConvertToHTMLColor(cl->name, colorbuf, sizeof(colorbuf)));
			XC;

			XO("td");
			SV_SApiSteamIDToString(cl->playerid, ssti, sizeof(ssti));
			XA(ssti);
			XC;

			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->power);//Ping
			XA(strbuf);

			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", gclient->sess.scoreboard.score);//Score
			XA(strbuf);


			Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->ping);//Ping
			XA(strbuf);
			XC;
		}

	}
	XO("tr"); XO1("td", "colspan", "6");
	XA("Spectators");
	XC; XC;
	for (cl = svs.clients, gclient = level.clients, i = 0; i < sv_maxclients->integer; i++, cl++, gclient++)
	{
		if (cl->state < CS_CONNECTED) {
			continue;
		}

		if(gclient->sess.cs.team != TEAM_SPECTATOR)
		{
			continue;
		}

		++numcl;

		XO("tr");

		Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", i);//CID
		XA(strbuf);

		XO("td");//Name
		XA(Webadmin_ConvertToHTMLColor(cl->name, colorbuf, sizeof(colorbuf)));
		XC;

		XO("td");
		SV_SApiSteamIDToString(cl->playerid, ssti, sizeof(ssti));
		XA(ssti);
		XC;

		Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->power);//Ping
		XA(strbuf);

		Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", gclient->sess.scoreboard.score);//Score
		XA(strbuf);


		Com_sprintf(strbuf, sizeof(strbuf), "<td>%d</td>", cl->ping);//Ping
		XA(strbuf);
		XC;
	}

	XC;


	XA(va("%d players are on server", numcl));

}
Exemplo n.º 4
0
wxString BuiltinEffectsModule::GetVendor()
{
   return XO("The Audacity Team");
}
Exemplo n.º 5
0
#include "Leveller.h"

enum kPasses
{
   kLight,
   kModerate,
   kHeavy,
   kHeavier,
   kHeaviest,
   kNumPasses
};

static const wxString kPassStrings[kNumPasses] =
{
   /* i18n-hint: Of strength of an effect.  Not strongly.*/
   XO("Light"),
   XO("Moderate"),
   /* i18n-hint: Of strength of an effect.  Strongly.*/
   XO("Heavy"),
   XO("Heavier"),
   XO("Heaviest"),
};

// Define keys, defaults, minimums, and maximums for the effect parameters
//
//     Name    Type  Key            Def        Min   Max                        Scale
Param( Level,  int,  XO("dB"),      10,        0,    Enums::NumDbChoices - 1,   1  );
Param( Passes, int,  XO("Passes"),  kModerate, 0,    kNumPasses - 1,            1  );

//
// EffectLeveller
Exemplo n.º 6
0
wxString LadspaEffectsModule::GetDescription()
{
   return XO("Provides LADSPA Effects");
}
Exemplo n.º 7
0
wxString BuiltinEffectsModule::GetSymbol()
{
   return XO("Builtin Effects");
}
Exemplo n.º 8
0
wxString NyquistEffectsModule::GetVendor()
{
   return XO("The Audacity Team");
}
Exemplo n.º 9
0
wxString NyquistEffectsModule::GetDescription()
{
   return XO("Provides Nyquist Effects support to Audacity");
}
Exemplo n.º 10
0
#include <float.h>

#include "../Project.h"
#include "../Track.h"
#include "../TrackPanel.h"
#include "../Shuttle.h"
#include "../ShuttleGui.h"
#include "CommandContext.h"


// Relative to project and relative to selection cover MOST options, since you can already
// set a selection to a clip.
const int nRelativeTos =6;
static const EnumValueSymbol kRelativeTo[nRelativeTos] =
{
   { wxT("ProjectStart"), XO("Project Start") },
   { XO("Project") },
   { wxT("ProjectEnd"), XO("Project End") },
   { wxT("SelectionStart"), XO("Selection Start") },
   { XO("Selection") },
   { wxT("SelectionEnd"), XO("Selection End") }
};

bool SelectTimeCommand::DefineParams( ShuttleParams & S ){
   // Allow selection down to -ve 100seconds.
   // Typically used to expand/contract selections by a small amount.
   S.OptionalY( bHasT0           ).Define( mT0, wxT("Start"), 0.0, -100.0, (double)FLT_MAX);
   S.OptionalY( bHasT1           ).Define( mT1, wxT("End"), 0.0, -100.0, (double)FLT_MAX);
   S.OptionalN( bHasRelativeSpec ).DefineEnum( mRelativeTo,   wxT("RelativeTo"), 0, kRelativeTo, nRelativeTos );
   return true;
}
Exemplo n.º 11
0
wxString NyquistEffectsModule::GetSymbol()
{
   return XO("Nyquist Effects");
}
Exemplo n.º 12
0
VendorSymbol AudacityCommand::GetVendor(){      return XO("Audacity");}
Exemplo n.º 13
0
wxString EffectSilence::GetDescription()
{
   return XO("Creates audio of zero amplitude");
}
Exemplo n.º 14
0
wxString LV2EffectsModule::GetSymbol()
{
   return XO("LV2 Effects");
}
Exemplo n.º 15
0
wxString LadspaEffectsModule::GetSymbol()
{
   return XO("LADSPA Effects");
}
Exemplo n.º 16
0
#include "../Project.h"
#include "../widgets/NumericTextCtrl.h"
#include "../widgets/valnum.h"

#include "ToneGen.h"

enum kInterpolations
{
   kLinear,
   kLogarithmic,
   kNumInterpolations
};

static const wxString kInterStrings[kNumInterpolations] =
{
   XO("Linear"),
   XO("Logarithmic")
};

enum kWaveforms
{
   kSine,
   kSquare,
   kSawtooth,
   kSquareNoAlias,
   kNumWaveforms
};

static const wxString kWaveStrings[kNumWaveforms] =
{
   XO("Sine"),
Exemplo n.º 17
0
wxString LadspaEffectsModule::GetVendor()
{
   return XO("The Audacity Team");
}
Exemplo n.º 18
0
   }
   else
   {
      mbWantConstRateResampling = false; // variable rate resampling
      q_spec = soxr_quality_spec(SOXR_HQ, SOXR_VR);
   }
   mHandle.reset(soxr_create(1, dMinFactor, 1, 0, 0, &q_spec, 0));
}

Resample::~Resample()
{
}

//////////
static const IdentInterfaceSymbol methodNames[] = {
   { wxT("LowQuality"), XO("Low Quality (Fastest)") },
   { wxT("MediumQuality"), XO("Medium Quality") },
   { wxT("HighQuality"), XO("High Quality") },
   { wxT("BestQuality"), XO("Best Quality (Slowest)") }
};

static const size_t numMethods = WXSIZEOF(methodNames);

static const wxString fastMethodKey =
   wxT("/Quality/LibsoxrSampleRateConverterChoice");

static const wxString bestMethodKey =
   wxT("/Quality/LibsoxrHQSampleRateConverterChoice");

static const wxString oldFastMethodKey =
   wxT("/Quality/LibsoxrSampleRateConverter");
Exemplo n.º 19
0
wxString EffectInvert::GetDescription()
{
   return XO("Flips the audio samples upside-down, reversing their polarity");
}
Exemplo n.º 20
0
static int
ddb_reg_var(const struct db_variable *v, db_expr_t *ep, int op)
{
	register_t * const rp = (register_t *)DDB_REGS;
	if (op == DB_VAR_SET) {
		rp[(uintptr_t)v->valuep] = *ep;
	} else {
		*ep = rp[(uintptr_t)v->valuep];
	}
	return 0;
}


#define XO(f) ((long *)(offsetof(db_regs_t, f) / sizeof(register_t)))
const struct db_variable db_regs[] = {
	{ "spsr", XO(tf_spsr), ddb_reg_var, NULL },
	{ "r0", XO(tf_r0), ddb_reg_var, NULL },
	{ "r1", XO(tf_r1), ddb_reg_var, NULL },
	{ "r2", XO(tf_r2), ddb_reg_var, NULL },
	{ "r3", XO(tf_r3), ddb_reg_var, NULL },
	{ "r4", XO(tf_r4), ddb_reg_var, NULL },
	{ "r5", XO(tf_r5), ddb_reg_var, NULL },
	{ "r6", XO(tf_r6), ddb_reg_var, NULL },
	{ "r7", XO(tf_r7), ddb_reg_var, NULL },
	{ "r8", XO(tf_r8), ddb_reg_var, NULL },
	{ "r9", XO(tf_r9), ddb_reg_var, NULL },
	{ "r10", XO(tf_r10), ddb_reg_var, NULL },
	{ "r11", XO(tf_r11), ddb_reg_var, NULL },
	{ "r12", XO(tf_r12), ddb_reg_var, NULL },
	{ "usr_sp", XO(tf_usr_sp), ddb_reg_var, NULL },
	{ "usr_lr", XO(tf_usr_lr), ddb_reg_var, NULL },
Exemplo n.º 21
0
wxString BuiltinEffectsModule::GetName()
{
   return XO("Builtin Effects");
}
Exemplo n.º 22
0
wxString EffectStereoToMono::GetDescription()
{
   return XO("Converts stereo tracks to mono");
}
Exemplo n.º 23
0
wxString BuiltinEffectsModule::GetDescription()
{
   return XO("Provides builtin effects to Audacity");
}
Exemplo n.º 24
0
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include "../widgets/valnum.h"

enum kTypes
{
   kWhite,
   kPink,
   kBrownian,
   nTypes
};

static const IdentInterfaceSymbol kTypeStrings[nTypes] =
{
   // These are acceptable dual purpose internal/visible names
   { XO("White") },
   { XO("Pink") },
   { XO("Brownian") }
};

// Define keys, defaults, minimums, and maximums for the effect parameters
//
//     Name    Type     Key               Def      Min   Max            Scale
Param( Type,   int,     wxT("Type"),       kWhite,  0,    nTypes - 1, 1  );
Param( Amp,    double,  wxT("Amplitude"),  0.8,     0.0,  1.0,           1  );

//
// EffectNoise
//

EffectNoise::EffectNoise()
Exemplo n.º 25
0
#include "../Prefs.h"
#include "../Project.h"
#include "../ShuttleGui.h"
#include "../WaveTrack.h"
#include "../widgets/valnum.h"

enum kActions
{
   kTruncate,
   kCompress,
   kNumActions
};

static const wxChar *kActionStrings[kNumActions] =
{
   XO("Truncate Detected Silence"),
   XO("Compress Excess Silence")
};

// Define defaults, minimums, and maximums for each parameter
#define DefaultAndLimits(name, def, min, max) \
   static const double DEF_ ## name = (def); \
   static const double MIN_ ## name = (min); \
   static const double MAX_ ## name = (max);

// Define keys, defaults, minimums, and maximums for the effect parameters
//
//     Name       Type     Key               Def         Min      Max                        Scale
Param( DbIndex,   int,     XO("Db"),         0,          0,       Enums::NumDbChoices - 1,   1  );
Param( ActIndex,  int,     XO("Action"),     kTruncate,  0,       kNumActions - 1,           1  );
Param( Minimum,   double,  XO("Minimum"),    0.5,        0.001,   10000.0,                   1  );
Exemplo n.º 26
0
   ID_Cutoff,
   ID_StopbandRipple
};

enum kTypes
{
   kButterworth,
   kChebyshevTypeI,
   kChebyshevTypeII,
   kNumTypes
};

static const wxChar *kTypeStrings[] =
{
   /*i18n-hint: Butterworth is the name of the person after whom the filter type is named.*/
   XO("Butterworth"),
   /*i18n-hint: Chebyshev is the name of the person after whom the filter type is named.*/
   XO("Chebyshev Type I"),
   /*i18n-hint: Chebyshev is the name of the person after whom the filter type is named.*/
   XO("Chebyshev Type II")
};

enum kSubTypes
{
   kLowPass,
   kHighPass,
   kNumSubTypes
};

static const wxChar *kSubTypeStrings[] =
{
Exemplo n.º 27
0
}



enum kColours
{
   kColour0,
   kColour1,
   kColour2,
   kColour3,
   nColours
};

static const EnumValueSymbol kColourStrings[nColours] =
{
   { wxT("Color0"), XO("Color 0") },
   { wxT("Color1"), XO("Color 1") },
   { wxT("Color2"), XO("Color 2") },
   { wxT("Color3"), XO("Color 3") },
};


enum kDisplayTypes
{
   kWaveform,
   kSpectrogram,
   nDisplayTypes
};

static const EnumValueSymbol kDisplayTypeStrings[nDisplayTypes] =
{
Exemplo n.º 28
0
enum kVinyl
{
   kVinyl_33AndAThird = 0,
   kVinyl_45,
   kVinyl_78,
   kVinyl_NA,
   kNumVinyl
};

static const wxChar *kVinylStrings[kNumVinyl] =
{
   wxT("33 1/3"),
   wxT("45"),
   wxT("78"),
   /* i18n-hint: n/a is an English abbreviation meaning "not applicable". */
   XO("n/a"),
};

// Soundtouch is not reasonable below -99% or above 3000%.

// Define keys, defaults, minimums, and maximums for the effect parameters
//
//     Name          Type     Key               Def   Min      Max      Scale
Param( Percentage,   double,  XO("Percentage"), 0.0,  -99.0,   4900.0,  1  );

// We warp the slider to go up to 400%, but user can enter higher values
static const double kSliderMax = 100.0;         // warped above zero to actually go up to 400%
static const double kSliderWarp = 1.30105;      // warp power takes max from 100 to 400.

//
// EffectChangeSpeed
void Webadmin_BuildMessage(msg_t* msg, const char* username, qboolean invalidloginattempt, const char* banmsg, const char* url, httpPostVals_t* values)
{

	xml_t xmlbase;
	xml_t* xmlobj = &xmlbase;
	char actionval[64];
	char colorbuf[2048];
	const char *postval;
	char netadrstr[128];
	uint64_t steamid;
	int power, oldpower, oldinvokerclnum;
	uint64_t oldinvokersteamid;
	char oldinvokername[64];
	const char* name;

	XML_Init(xmlobj, (char*)msg->data, msg->maxsize, "ISO-8859-1");
	XO("html");
		XO("head");
			XO("title");
				XA("CoD4X Web Server");
			XC;
			XO2("link","href","/files/webadmin.css","rel","stylesheet");XC;
		XC;
		XO("body");
			XO1("div","class","container");
				XO1("div","class","page-header");
					XO("h1");
						XA("CoD4 X v1.8");
						XO("small");
							XA(" Web Server");
						XC;
					XC;
					XO("h3");
						XA(Webadmin_ConvertToHTMLColor(sv_hostname->string, colorbuf, sizeof(colorbuf)));
						XA(" ");
						XA(sv_mapname->string);
					XC;
				XC;

				if(!Q_strncmp(url, "/webadmin", 9))
				{

					if(username == NULL || username[0] == '\0')
					{
						Webadmin_BuildLoginForm(xmlobj, invalidloginattempt, banmsg);

					}else {
						steamid = Auth_GetSteamID(username);
						if(!Q_strncmp(url +9, "/listadmins", 11))
						{
							Webadmin_BuildAdminList(xmlobj, steamid);
						}else {
								XO1("div","class","loginusername");
									XO1("span","class","label label-primary");
										XA("Logged in as: ");XA(username);XA(". &nbsp;");
										XO2("a","href","/webadmin/?action=logout","style","color: #fff");
											XA("Log Out");
										XC;
									XC;
								XC;
							XO1("div", "class", "col-lg-6 right_line");
								XO("h3");XA("Server Status");XC;
								XO("hr");XC;
								Webadmin_BuildServerStatus(xmlobj, qtrue);
							XC;


							XO1("div", "class", "col-lg-6 left_line");
								XO("h3");XA("Command Console");XC;
								XO("hr");XC;
								if(Webadmin_GetUrlVal( url, "action", actionval, sizeof(actionval)))//nnjpls
								{
									if (strcmp(actionval, "logout") == 0) {
										Auth_WipeSessionId(username);

									}else{

										oldpower = Cmd_GetInvokerPower();
										oldinvokerclnum = Cmd_GetInvokerClnum();
										oldinvokersteamid = Cmd_GetInvokerSteamID();
										Cmd_GetInvokerName(oldinvokername, sizeof(oldinvokername));
										power = Auth_GetClPowerBySteamID(steamid);
										name = Auth_GetNameBySteamID(steamid);
										Cmd_SetCurrentInvokerInfo(power, -1, steamid, name);

										if(strcmp(actionval, "sendcmd") == 0){
											postval = HTTP_GetFormDataItem(values, "consolecommand");
											if(postval[0]){
												XO1("div","class","well");
													Webadmin_ConsoleCommand(xmlobj, postval, steamid);
												XC;
											}
										}else if(strcmp(actionval, "banclient") == 0){

											Webadmin_BanClient(xmlobj, values, steamid);
										}else if(strcmp(actionval, "kickclient") == 0){
											Webadmin_KickClient(xmlobj, values, steamid);

										}

										Cmd_SetCurrentInvokerInfo(oldpower, oldinvokerclnum, oldinvokersteamid, oldinvokername);

									}
								}

								XO5("form", "name", "input", "action", "webadmin?action=sendcmd", "method", "post", "class","form-control","id","con_form");
									XA("<label for=\"consolecommand\">Send Command</label> <input type=\"text\" name=\"consolecommand\" id=\"consolecommand\">");
									XA("<button class=\"givesomespace btn btn-primary btn-xs\" type=\"submit\">Send Command</button>");
								XC;
							XC;

						}
					}
				}else if(!Q_strncmp(url, "/status", 7)){
					XO("h3");XA("Server Status");XC;
					XO("hr");XC;
						Webadmin_BuildServerStatus(xmlobj,qfalse);
				}else {
					XO1("h3","align","center");
						XA("Where do you want to go?");
					XC;
					XO1("div","align","center");
						XA("<a href=\"/webadmin\" class=\"btn btn-primary givesomespace\">Web Admin</a>");
						XA("<a href=\"/status\" class=\"btn btn-primary givesomespace\">Server Status</a>");
					XC;
				}
			XO("p");
				XA("Net: ");
				XA(NET_GetHostAddress(netadrstr, sizeof(netadrstr)));
			XC;
			XC;
		XC;
	XC;

	msg->cursize = xmlobj->bufposition;

}
Exemplo n.º 30
0
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include "../widgets/valnum.h"

enum kTypes
{
   kWhite,
   kPink,
   kBrownian,
   kNumTypes
};

static const wxChar *kTypeStrings[kNumTypes] =
{
   XO("White"),
   XO("Pink"),
   XO("Brownian")
};

// Define keys, defaults, minimums, and maximums for the effect parameters
//
//     Name    Type     Key               Def      Min   Max            Scale
Param( Type,   int,     XO("Type"),       kWhite,  0,    kNumTypes - 1, 1  );
Param( Amp,    double,  XO("Amplitude"),  0.8,     0.0,  1.0,           1  );

//
// EffectNoise
//

EffectNoise::EffectNoise()