Go Back   DriverHeaven > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP
Register Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old Feb 19, 2007, 07:14 PM   #1 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

.kxl plugin and default settings...

Can anyone think of a reason why a .kxl plugin would not work until the reset button is clicked?

The reason I ask is because I have run into a situation where for some unknown reason this is happening with a plugin.

Why would clicking reset do anything different than what occurs when the plugin is loaded?

Additionally, the default values are hard coded into the DSP code.

If I look at the code dump before and after the reset button is clicked (default values, etc), it is identical. However, when examining the registers (current value -vs- previous value -vs- default value ) one of the gprs shows a value of 0 (as the current value, with the previous value being the default value) before reset is clicked. It seems as though something is happening in the code that is causing that value to reach 0, before it is fully initialized, and it remains 0, because it is used as a multiplicand (and of course, anything multiplied by 0 is 0), and thus the plugin does not work. However, when clicking reset, it works as it should.

Modifying the value in question (using a slider, etc), also makes the plugin work, but again, I cannot explain why the default values at load time do not work, but the same default values do work when reset is clicked (or when adjusting the sliders to the same default values, etc).

Anyone have any thoughts about this?
Russ is offline   Reply With Quote
Old Feb 19, 2007, 11:42 PM   #2 (permalink)
Tril
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,372
Tril is on a distinguished road
System Specs

I don't have any idea. Which plugin is that?
Tril is offline   Reply With Quote
Old Feb 20, 2007, 12:00 AM   #3 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

I was making some changes/updating my phaser plugin, and it started doing that.

In any case, it is easy enough to work around, and one of the changes I am making to it, will prevent it from happening anyway. I am just curious as to what could cause it to act that way, considering it should be using the same code when loading, and when setting defaults.
Russ is offline   Reply With Quote
Old Feb 20, 2007, 03:11 PM   #4 (permalink)
Tiger M
kX user
 
Join Date: Apr 2004
Posts: 851
Tiger M is on a distinguished road

That's a bug I guess...
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Feb 20, 2007, 04:01 PM   #5 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Yeah, it is strange, but considering I have never seen that heppen before... I am not sure what to think about it.
Russ is offline   Reply With Quote
Old Feb 20, 2007, 07:32 PM   #6 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

@Tril,
Here is something interesting...
I was looking at your TimeBalance plugin, to see if I could see anything that might be giving frost_dk problems, and I noticed that the load-time values for the iTram addresses are not valid (outside the iTram address range).

i.e. (here is a partial dump after loading the plugin)

idelay write dwFL at 0x0;
idelay read drFL at 0x241c127;
idelay write dwFR at 0x241c128;
idelay read drFR at 0x483824d;
idelay write dwRL at 0x483824e;
idelay read drRL at 0x4838250;
idelay write dwRR at 0x4838251;
idelay read drRR at 0x6c449a4;
idelay write dwC at 0x6c449a5;
idelay read drC at 0x6c500a4;

Note that your iTram size is 4190, so none of the above addresses should be above 0x105e (they are way out of range).

However, after clicking reset (or adjusting a slider):

idelay write dwFL at 0x0;
idelay read drFL at 0x2;
idelay write dwFR at 0x3;
idelay read drFR at 0x5;
idelay write dwRL at 0x6;
idelay read drRL at 0x8;
idelay write dwRR at 0x9;
idelay read drRR at 0xb;
idelay write dwC at 0xc;
idelay read drC at 0xe;

This is making me wonder if maybe there is something wrong with the plugin loading code in 3538m.

BTW: Although the addresses seem off when loading the plugin, it does not mute my sound when connected (as with frost_dk), but maybe this is a contributing factor to the problem that frost_dk is having.
Russ is offline   Reply With Quote
Old Feb 22, 2007, 07:40 PM   #7 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Update: The problem with the TimeBalanceV2 plugin turned out to be something else, and considering I have not had this problem (thus far) with any other plugins (and I allready changed my phaser code such that it does not happen anymore (i.e. I can no longer test it)), I am not willing to say (with certainty) that it is a bug. So I guess we should just forget about it for now...
Russ is offline   Reply With Quote
Old Feb 24, 2007, 03:21 PM   #8 (permalink)
Eugene Gavrilov
kX Project Lead Programmer and Coordinator
 
Join Date: Dec 2002
Posts: 2,888
Eugene Gavrilov is a glorious beacon of lightEugene Gavrilov is a glorious beacon of lightEugene Gavrilov is a glorious beacon of lightEugene Gavrilov is a glorious beacon of lightEugene Gavrilov is a glorious beacon of lightEugene Gavrilov is a glorious beacon of light

without the source I won't be able to help
I guess something went wrong with C++ stuff (inheritance or class instantiation)
E.
Eugene Gavrilov is offline   Reply With Quote
Old Feb 25, 2007, 11:00 AM   #9 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

@Eugene,

Thanks for responding

There was a bug in my code similar to the issue Tril was having with his TimeBalanceV2 plugin, and although, I think it should not have caused this (with my plugin), it is a bug none-the-less, and was likely a contributing factor. In any case, as I said previously I have allready modifed the code (with changes I was planning to do anyway, as well as fixing that bug), and it is no longer a problem.

Last edited by Russ : Feb 25, 2007 at 11:50 AM. Reason: clarification
Russ is offline   Reply With Quote
Old Feb 25, 2007, 11:25 AM   #10 (permalink)
Lex Nahumury
DriverHeaven Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,728
Lex Nahumury is on a distinguished road

Quote:
Originally Posted by Russ View Post
There was a bug in the code similar to the issue Tril was having with his TimeBalanceV2 plugin, and although, I think it should not have caused this (with my plugin), it is a bug none-the-less, and was likely a contributing factor. In any case, as I said previously I have allready modifed the code (with changes I was planning to do anyway, as well as fixing that bug), and it is no longer a problem.
Sorry, perhaps I missed something, but what is all this vague talk about 'bug'???
I presume you mean a bug in your plugin code. Not in kx api right?
Lex Nahumury is offline   Reply With Quote
Old Feb 25, 2007, 11:36 AM   #11 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Yes, I mean a bug in my plugins C++ code.
Russ is offline   Reply With Quote
Old Feb 25, 2007, 12:00 PM   #12 (permalink)
Lex Nahumury
DriverHeaven Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,728
Lex Nahumury is on a distinguished road

ok. got me worried there for a moment lol
Lex Nahumury is offline   Reply With Quote
Old Mar 3, 2007, 06:20 PM   #13 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

<edit>
I removed the C++ source code since the problem happens with Dane only plugins.
</edit>

-Russ

Last edited by Russ : Mar 14, 2007 at 07:58 PM. Reason: update
Russ is offline   Reply With Quote
Old Mar 3, 2007, 08:36 PM   #14 (permalink)
Maddogg6
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 3,575
Maddogg6 will become famous soon enough

Well - I can only confirm this behavior on my card as well..
Maddogg6 is offline   Reply With Quote
Old Mar 3, 2007, 09:55 PM   #15 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 3,875
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

BTW: (I allready mentioned this before, but) I do realize that with the way the code uses these registers, it is not good to use it only in multiplication operations (because if it does go to zero (for whatever reason), it will stay there), and the other version does not do this. The main thing I wonder about, is why it goes to zero instantly after loading, but not when setting defaults.

BTW: It does the same thing if you copy and paste the code into a new (Dane only) plugin, so that would seem to indicate that the plugin's C++ code is not the problem.
Russ is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 03:57 PM. Copyright ©2008 DriverHeaven.net