HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > General Discussion


Reply
 
Thread Tools
Old Oct 18, 2005, 09:25 AM   #1
DriverHeaven Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0
aspectus is on a distinguished road

deleting default presets

I'm stuck on an 800x600 display for a while, and find that scrolling down the Surrounder preset list is painfully tedious as I need to do it frequently, to get to my custom presets.

How could I go about deleting all those built in presets (which I never use)?
aspectus is offline   Reply With Quote


Old Oct 18, 2005, 03:25 PM   #2
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

Sry you can't.
Those presets are 'hard coded' in the Plugin(s) itself by the author of the plugin.

/LeMury
Lex Nahumury is offline   Reply With Quote
Old Oct 18, 2005, 03:43 PM   #3
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

It would be easy to load/save settings - which saves the plugins preset selected.
Maddogg6 is offline   Reply With Quote
Old Oct 19, 2005, 12:28 AM   #4
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
System Specs

Quote:
Sry you can't.
Those presets are 'hard coded' in the Plugin(s) itself by the author of the plugin.
That means that to remove the unwanted presets, you need to comment out the preset you don't want and recompile the plugin.

The file name of the source code files contain surrounder2 (in e.g. C:\Program Files\kX Project\SDK 3538\fx_lib).

In the file surrounder2.cpp, change
Code:
static kxparam_t presets[] = 
{
P"2.0 - Stereo only",				SPM_21, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"2.0 - Simple Mix",				 SPM_21, SUM_COPY, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"2.0 - Surround mix",			 SPM_21, SUM_ON, 100, 100, 66, 0, SBM_NOSUB, 2000,
P"4.0 - Quadro",					 SPM_41, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"4.0 - Rear=Front",				 SPM_41, SUM_COPY, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"4.0 - Movie Mode",				 SPM_41, SUM_ON, 100, 100, 66, 120, SBM_NOSUB, 2000,
P"5.0 - Direct Path",				SPM_51, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"5.0 - Rear=Front",				 SPM_51, SUM_COPY, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"5.0 - Movie Mode",				 SPM_51, SUM_ON, 100, 100, 66, 120, SBM_NOSUB, 2000,
P"4.1 - Quadro",					 SPM_41, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"4.1 - Rear=Front",				 SPM_41, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"4.1 - Movie Mode",				 SPM_41, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
P"5.1 - Direct Path",				SPM_51, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"5.1 - Rear=Front",				 SPM_51, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"5.1 - Movie Mode",				 SPM_51, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
P"6.1 - Direct Path",				SPM_61, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"6.1 - Rear=Front",				 SPM_61, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"6.1 - Movie Mode",				 SPM_61, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
P"7.1 - Direct Path",				SPM_71, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"7.1 - Rear=Front",				 SPM_71, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
P"7.1 - Movie Mode",				 SPM_71, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
P"Headphones Lite",		SPM_HEADPHONES_LITE, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
P"Headphones",		 SPM_HEADPHONES_HARD, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
NULL,
};
to
Code:
static kxparam_t presets[] = 
{
//P"2.0 - Stereo only",				SPM_21, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"2.0 - Simple Mix",				 SPM_21, SUM_COPY, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"2.0 - Surround mix",			 SPM_21, SUM_ON, 100, 100, 66, 0, SBM_NOSUB, 2000,
//P"4.0 - Quadro",					 SPM_41, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"4.0 - Rear=Front",				 SPM_41, SUM_COPY, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"4.0 - Movie Mode",				 SPM_41, SUM_ON, 100, 100, 66, 120, SBM_NOSUB, 2000,
//P"5.0 - Direct Path",				SPM_51, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"5.0 - Rear=Front",				 SPM_51, SUM_COPY, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"5.0 - Movie Mode",				 SPM_51, SUM_ON, 100, 100, 66, 120, SBM_NOSUB, 2000,
//P"4.1 - Quadro",					 SPM_41, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"4.1 - Rear=Front",				 SPM_41, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"4.1 - Movie Mode",				 SPM_41, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
//P"5.1 - Direct Path",				SPM_51, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"5.1 - Rear=Front",				 SPM_51, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"5.1 - Movie Mode",				 SPM_51, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
//P"6.1 - Direct Path",				SPM_61, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"6.1 - Rear=Front",				 SPM_61, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"6.1 - Movie Mode",				 SPM_61, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
//P"7.1 - Direct Path",				SPM_71, SUM_OFF, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"7.1 - Rear=Front",				 SPM_71, SUM_COPY, 100, 100, 50, 0, SBM_DEFAULT, 2000,
//P"7.1 - Movie Mode",				 SPM_71, SUM_ON, 100, 100, 66, 120, SBM_DEFAULT, 2000,
//P"Headphones Lite",		SPM_HEADPHONES_LITE, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
//P"Headphones",		 SPM_HEADPHONES_HARD, SUM_OFF, 100, 100, 50, 0, SBM_NOSUB, 2000,
NULL,
};
and recompile. You can remove all the presets except NULL.
Tril is offline   Reply With Quote
Old Oct 19, 2005, 03:40 AM   #5
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

I doubt if the OP had that in mind , but who knows.
Lex Nahumury is offline   Reply With Quote
Old Oct 19, 2005, 06:11 PM Threadstarter Thread Starter   #6
DriverHeaven Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0
aspectus is on a distinguished road

OK I couldn't resist Tril!

Here is what I see when I double click 'surrounder2.cpp'. As far as I can tell there are no such lines to comment out. Now I know I'm doing something wrong...

Quote:
// kX Driver / kX Driver Interface / kX Driver Effects Library
// Copyright (c) Eugene Gavrilov and Max Mikhailov, 2002-2004.
// All rights reserved
// This program is free software; you can redistribute it and/or
// modify it under the terms of the
// EUGENE GAVRILOV KX DRIVER SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT

// 10kX microcode

char* surrounder2_name = "Surrounder+";
char* surrounder2_copyright = "(c) Max Mikhailov and Eugene Gavrilov, 2002-2004";
char* surrounder2_engine = "kX";
char* surrounder2_created = "Feb 20 2003 / Oct 2003 / May 2004";
char* surrounder2_comment = "surround sound and channel separation plugin - v1.2 beta; $nobypass";
char* surrounder2_guid = "0c37979a-ac18-4898-900d-5c6d33557421";

int surrounder2_itramsize = 0x00784; // 40.08 msec (1924 samples)
int surrounder2_xtramsize = 0x00000; // 0 msec (0 samples)

#define R(i)
#define _ 0xFFFF,
dsp_register_info surrounder2_info[] =
{
R(0) {"in_L", 0x4000u, 0x07, _ 0x00000000}, // input
R(1) {"in_R", 0x4001u, 0x07, _ 0x00000000}, // input
R(2) {"in_nw", 0x4002u, 0x07, _ 0x00000000}, // input
R(3) {"in_ne", 0x4003u, 0x07, _ 0x00000000}, // input
R(4) {"in_sw", 0x4004u, 0x07, _ 0x00000000}, // input
R(5) {"in_se", 0x4005u, 0x07, _ 0x00000000}, // input
R(6) {"in_n", 0x4006u, 0x07, _ 0x00000000}, // input
R(7) {"in_lfe", 0x4007u, 0x07, _ 0x00000000}, // input
R(34) {"in_w", 0x4008u, 0x07, _ 0x00000000}, // input
R(35) {"in_e", 0x4009u, 0x07, _ 0x00000000}, // input
R(37) {"in_s", 0x400bu, 0x07, _ 0x00000000}, // input
R(36) {"in_top", 0x400au, 0x07, _ 0x00000000}, // input

R(8) {"fL", 0x8000u, 0x08, _ 0x00000000}, // output
R(9) {"fR", 0x8001u, 0x08, _ 0x00000000}, // output
R(10) {"sL", 0x8002u, 0x08, _ 0x00000000}, // output
R(11) {"sR", 0x8003u, 0x08, _ 0x00000000}, // output
R(12) {"Center", 0x8004u, 0x08, _ 0x00000000}, // output
R(13) {"LFE", 0x8005u, 0x08, _ 0x00000000}, // output

R(14) {"CK", 0x8006u, 0x01, _ 0x3FFFFFFF}, // static
R(15) {"SK1", 0x8007u, 0x01, _ 0x547AE147}, // static
R(16) {"SK2", 0x8008u, 0x01, _ 0x2A3D70A3}, // static
R(17) {"lb", 0x8009u, 0x01, _ 0x00000000}, // static
R(18) {"rb", 0x800Au, 0x01, _ 0x00000000}, // static
R(19) {"wfa", 0x800Bu, 0x01, _ 0x00160C9C}, // static
R(20) {"wfy", 0x800Cu, 0x01, _ 0x7B42EDBA}, // static
R(21) {"wfb", 0x800Du, 0x01, _ 0x84A704BD}, // static
R(22) {"wfzl", 0x800Eu, 0x01, _ 0x00000000}, // static
R(23) {"wfzr", 0x800Fu, 0x01, _ 0x00000000}, // static
R(24) {"vWl", 0x8010u, 0x01, _ 0x00000000}, // static
R(25) {"vWr", 0x8011u, 0x01, _ 0x00000000}, // static
R(26) {"dwL", 0x8012u, 0x49, _ 0x00000000},
R(27) {"&dwL", 0x8013u, 0x0B, _ 0x00000000},
R(28) {"dwR", 0x8014u, 0x49, _ 0x000003C2},
R(29) {"&dwR", 0x8015u, 0x0B, _ 0x000003C2},
R(30) {"drL", 0x8016u, 0x29, _ 0x000003C0},
R(31) {"&drL", 0x8017u, 0x0B, _ 0x000003C0},
R(32) {"drR", 0x8018u, 0x29, _ 0x00000782},
R(33) {"&drR", 0x8019u, 0x0B, _ 0x00000782},

R(38) {"sCenter1", 0x801au, 0x08, _ 0x00000000}, // output
R(39) {"sCenter2", 0x801bu, 0x08, _ 0x00000000}, // output
// sCenter1 = rear center for 6.1 set-up
// sCenter1/2 = side left/right for 7.1 set-up
};
#undef _
#undef R

#define I(i)
dsp_code surrounder2_code[] =
{
I(0) {0x1, 0x8009u, 0x4000u, 0x8010u, 0x2040u},
I(1) {0x1, 0x800Au, 0x4001u, 0x8011u, 0x2040u},
I(2) {0x6, 0x8005u, 0x4007u, 0x8010u, 0x8011u},
I(3) {0x0, 0x2040u, 0x8010u, 0x800Eu, 0x800Du},
I(4) {0x7, 0x800Eu, 0x8010u, 0x8010u, 0x800Cu},
I(5) {0x0, 0x8010u, 0x2056u, 0x4000u, 0x800Bu},
I(6) {0x0, 0x2040u, 0x8011u, 0x800Fu, 0x800Du},
I(7) {0x7, 0x800Fu, 0x8011u, 0x8011u, 0x800Cu},
I(8) {0x0, 0x8011u, 0x2056u, 0x4001u, 0x800Bu},
I(9) {0x0, 0x2040u, 0x2040u, 0x8009u, 0x8007u},
I(10) {0x1, 0x8012u, 0x2056u, 0x800Au, 0x8008u},
I(11) {0x0, 0x8004u, 0x4006u, 0x8009u, 0x8006u},
I(12) {0x0, 0x8000u, 0x4002u, 0x8009u, 0x204Fu},
I(13) {0x0, 0x8002u, 0x4004u, 0x8016u, 0x204Fu},
I(14) {0x0, 0x2040u, 0x2040u, 0x800Au, 0x8007u},
I(15) {0x1, 0x8014u, 0x2056u, 0x8009u, 0x8008u},
I(16) {0x0, 0x8004u, 0x8004u, 0x800Au, 0x8006u},
I(17) {0x0, 0x8001u, 0x4003u, 0x800Au, 0x204Fu},
I(18) {0x0, 0x8003u, 0x4005u, 0x8018u, 0x204Fu},
I(19) {0x0, 0x8004u, 0x8004u, 0x2040u, 0x2040u},
{0x0, 0x2040u, 0x2040u, 0x2040u, 0x2040u}, // nops
{0x0, 0x2040u, 0x2040u, 0x2040u, 0x2040u},
{0x0, 0x2040u, 0x2040u, 0x2040u, 0x2040u},
{0x0, 0x2040u, 0x2040u, 0x2040u, 0x2040u},
};
#undef I

// register ids
#define R_IL 0x4000u
#define R_IR 0x4001u
#define R_IFL 0x4002u
#define R_IFR 0x4003u
#define R_ISL 0x4004u
#define R_ISR 0x4005u
#define R_IC 0x4006u
#define R_IW 0x4007u
#define R_FL 0x8000u
#define R_FR 0x8001u
#define R_SL 0x8002u
#define R_SR 0x8003u
#define R_C 0x8004u
#define R_W 0x8005u
#define R_CK 0x8006u
#define R_SK1 0x8007u
#define R_SK2 0x8008u
#define R_LB 0x8009u
#define R_RB 0x800Au
#define R_WFA 0x800Bu
#define R_WFY 0x800Cu
#define R_WFB 0x800Du
#define R_WFZL 0x800Eu
#define R_WFZR 0x800Fu
#define R_VWL 0x8010u
#define R_VWR 0x8011u
#define R_DWL 0x8012u
#define R_DWR 0x8014u
#define R_DRL 0x8016u
#define R_DRR 0x8018u

#define R_8W 0x4008u
#define R_E 0x4009u
#define R_S 0x400bu
#define R_TOP 0x400au

#define R_SCNTR1 0x801au
#define R_SCNTR2 0x801bu
and ty to you too maddogg, I dunno why I didn't think of that, but now Tril has got me onto this funness!
aspectus is offline   Reply With Quote
Old Oct 19, 2005, 06:40 PM   #7
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

Looks like you opened da_surrounder2.cpp which is the microcode part of the plugin.
(no presets in there)
Lex Nahumury is offline   Reply With Quote
Old Oct 20, 2005, 07:41 AM Threadstarter Thread Starter   #8
DriverHeaven Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0
aspectus is on a distinguished road

Mmm indeed. Not a good start at becoming a kX recompiler. Hopefully it will be the last time I misread someone's generous assistance. Excuse me whilst I RT one mother of a FM, perchance to later ask meaningful questions.
aspectus is offline   Reply With Quote
Reply

Thread Tools