PDA

View Full Version : set/change volume


birty
January 22nd, 2005, 08:45 AM
set and change volume both seem to set the volume to a specific amount, how can i increase or decrease the volume like you could in girder 3 or is this a bug?

Promixis
January 22nd, 2005, 09:11 AM
do you mean from lua?

birty
January 22nd, 2005, 09:53 AM
no using the girder volume controls from the actions list

Ron
January 22nd, 2005, 10:55 AM
Change volume *should* have done that. Fixing it now.

birty
January 23rd, 2005, 01:58 PM
using alpha 3 any use of the volume set/change functions causes a memory read error

Ron
January 23rd, 2005, 02:08 PM
Hmm, that was not the intended result :-) I will investigate later today.

Ron
January 23rd, 2005, 02:11 PM
Quickly looking at it here reveals no error. Can you send me the GML with only this action in it? What sound card do you have?

birty
January 23rd, 2005, 02:47 PM
i am using an SB Audigy platinum

Ron
January 23rd, 2005, 03:25 PM
This is going to be tricky. It works fine for me.... let me see what I can do here.

birty
January 23rd, 2005, 03:58 PM
there are two audio devices on my pc if that would be the cause? (the second is a bluetooth audio device)

Ron
January 23rd, 2005, 03:59 PM
I don't know I am looking into the other bug first then I'll get back to this one.

Ron
January 23rd, 2005, 04:06 PM
Did it work without crashing before?

birty
January 23rd, 2005, 04:07 PM
yes both in v3 and alpha 2 (although with the incorrect functionality)

Ron
January 23rd, 2005, 04:09 PM
Can you try to use "display volume osd" for me? I am suspecting a bug in the GetVolume routine and "display volume osd" uses it.

birty
January 23rd, 2005, 04:12 PM
yes that crashes too

Ron
January 23rd, 2005, 04:12 PM
okay we are getting closer...

Ron
January 23rd, 2005, 04:21 PM
Could you replace girder.exe and girder.dll with the files supplied below. I want to see if we can trace this error with MadExcept.

Ron
January 23rd, 2005, 04:26 PM
thx alan.

birty
January 23rd, 2005, 04:26 PM
email has been sent, do you want me to post a copy of the report here?

Ron
January 23rd, 2005, 04:28 PM
Nope I am already on it. This madexcept library is pretty nice!

Rob H
January 23rd, 2005, 04:31 PM
I wouldn't leave home without it :)

Ron
January 23rd, 2005, 04:36 PM
The problem seems to be in the luavolume library (which madexcept doesn't handle) so we are going to have to do some manual debugging.

I have added a popup box to one of the functions. Try to run the offending function again and can you tell me what it says?

Thanks!!

birty
January 23rd, 2005, 04:42 PM
no message is shown

Ron
January 23rd, 2005, 04:43 PM
hmm... hang on...

Ron
January 23rd, 2005, 04:44 PM
Let's try that again.

birty
January 23rd, 2005, 04:46 PM
still nothing

Ron
January 23rd, 2005, 04:47 PM
*grumbl*

Ron
January 23rd, 2005, 04:58 PM
Okay another try then. (thanks for your patience!!)

birty
January 23rd, 2005, 05:00 PM
nope nothing

Ron
January 23rd, 2005, 05:02 PM
The bug report is showing that you are still running version 1.0.0.8 of the volume plugin, the version that I sent is version 1.0.0.9. Can you verify that the dll is the correct one?
According to the bug report the loaded dll is in the

D:\Program Files\girder4\plugins

directory.

Ron
January 23rd, 2005, 05:04 PM
Don't look at the girder settings dialog for the version, use the explorer and get the properties to check the version. ( The version displayed in the girder settings window is not updated yet, sorry about that).

birty
January 23rd, 2005, 05:11 PM
yes it is 1.0.0.9 and i just made another report which also shows the version as 1.0.0.9

Ron
January 23rd, 2005, 05:16 PM
Thanks Alan. You are still using the same gml as you sent me before?

Also please replace Girder.dll with the attached one.

birty
January 23rd, 2005, 05:19 PM
yes the same gml, still no messages

Ron
January 23rd, 2005, 05:20 PM
Now this is frustrating!

birty
January 23rd, 2005, 05:21 PM
hmm, i know the feeling, ive spent ages tracing a bug before that someone else was having and i coldnt reproduce, turned out to be stupidly simple

Ron
January 23rd, 2005, 05:23 PM
Something is telling me this one falls in that cat. You know how to see OutputDebugString messages?

birty
January 23rd, 2005, 05:24 PM
no, but if you tell me ill do it

Ron
January 23rd, 2005, 05:26 PM
Download

http://www.sysinternals.com/ntw2k/freeware/debugview.shtml

Run the executable in there. Then run Girder. All Debug output that any app on your system is generating will end up in that nice app. Girder *SHOULD* send some stuff when you trigger that node.

birty
January 23rd, 2005, 05:31 PM
sorry, all it gets is file open, girder open, girder enable, when its starts, i think madexcept is blocking the rest from reaching debugview

Rob H
January 23rd, 2005, 05:32 PM
Sounds like you could use CodeSite, Ron. Much better than OutputDebugString

www.raize.com

birty
January 23rd, 2005, 05:33 PM
if you could send me a small section of the source code i can try and step through it in delphi

Ron
January 23rd, 2005, 05:34 PM
Alan you forgot to replace the girder.dll attached in the post above.

birty
January 23rd, 2005, 05:35 PM
sorry

birty
January 23rd, 2005, 05:37 PM
heres the output
00000000 0.00000000 [5380] FileLoaded
00000001 0.01538352 [5380] GirderOpen
00000002 0.04080239 [5380] GirderEnable
00000003 4.11026625 [5380] Address only0:0:-1:0;-1
00000004 4.33940878 [5380] Address: 0:0:-1:0;-1 AD: 0:0:-1:0

Ron
January 23rd, 2005, 05:38 PM
Did it crash? There might have been a popup that didn't come to the foreground.

birty
January 23rd, 2005, 05:41 PM
yes it did, still no popup

Ron
January 23rd, 2005, 05:52 PM
I am getting visitors in 30 minutes and I am cooking dinner so we are going to have to continue this tomorrow :( Thanks for your help so far!!

Ron
January 23rd, 2005, 10:25 PM
Okay, this is getting ridiculous. The access error happens in a function that doesn't do a whole lot and on both machines here it seems to work.

Please test the "display volume osd" action with the master channel, while using this dll. Note it is NOT supposed to display the correct volume, I simply commented out all code but kept the function call there. No popup should happen, I am just going for no crash here.

Please log all debugstring output use the girder.dll that I gave you before.

THANKS!!

birty
January 24th, 2005, 02:39 AM
it still crashes and there is no popup here is the debuggin output
[3512] Address only0:0:-1:0;-1
[3512] Address: 0:0:-1:0;-1 AD: 0:0:-1:0

Ron
January 24th, 2005, 09:15 AM
???

Now that is the strangest thing. The function that I am calling is empty and statically linked into Girder...


int WINAPI StringToAddress(char *StrAddr, int *Dev, int *Dest, int *Src, int *Ctrl)
{
OutputDebugString("We are now inside LuaVolume.");
return 0;
}

I'll have to think very hard about this one... If anyone has any idea why this is failing, but only on Alan's machine I am all ears.

Ron
January 24th, 2005, 09:48 AM
Okay, now I have totally cut out the function in girder.dll that was causing the problem according to MadExcept, let's see if you can run display volume OSD without crashing...

Ron
January 24th, 2005, 09:52 AM
Does your CPU have NX support?

birty
January 24th, 2005, 09:57 AM
yes that one works, no it doesnt its an amd xp 2000

Ron
January 24th, 2005, 09:58 AM
hallelujah, amen.

Ron
January 24th, 2005, 10:00 AM
Okay small steps now. Please try this one with the display volume osd action.

birty
January 24th, 2005, 10:03 AM
that works too,
[3176] frame missing this frame = 98, prev = 89

is displayed in the debuggin though when girder starts.. (it didnt before)

Ron
January 24th, 2005, 10:04 AM
I think that is not from Girder :-) This debugging tool logs every app running. Thanks though.

Ron
January 24th, 2005, 10:08 AM
Okay, now I have put the offending function back... Please use the luavolume that I sent last and the girder.dll attached below.

birty
January 24th, 2005, 10:10 AM
attched below??

Ron
January 24th, 2005, 10:10 AM
reload :-)

birty
January 24th, 2005, 10:12 AM
yep have done, that one crashes :(

Ron
January 24th, 2005, 10:13 AM
That is absolutely amazing. Do you have any other crashes in the volume handling? I have one AMD machine here, I am going to give this a try there right now.

birty
January 24th, 2005, 10:16 AM
yes all the volume functions crash, none dis in alpha 2 though and ive been using v3 for ages with no problems

Ron
January 24th, 2005, 10:21 AM
Does set volume crash too? Could you send me a bug report of that?

birty
January 24th, 2005, 10:22 AM
yep, report sent

birty
January 24th, 2005, 10:31 AM
that version works perfectly

Ron
January 24th, 2005, 10:32 AM
You are kidding me! #$%^#$! armadillo.

Ron
January 24th, 2005, 10:43 AM
Could you please replace all files attached below. These have Armadillo enabled again, but with the lowest protection options. These files should work as normal, all debug stuff has been removed.

birty
January 24th, 2005, 10:48 AM
yes those crash too

Ron
January 24th, 2005, 10:48 AM
nooooooooooooooooo!

Ron
January 24th, 2005, 10:54 AM
Okay, even less protection options.

birty
January 24th, 2005, 10:58 AM
that crashes too, could it be a problem with anti virus?

Ron
January 24th, 2005, 10:59 AM
That could be, did you try unload that?

birty
January 24th, 2005, 11:05 AM
hmm, im not really sure how, i stopped the virus services and killed all the executables i could find in the task manager (im using avg 7 free edition)

Ron
January 24th, 2005, 11:07 AM
After stopping all those apps. did girder4 work?

birty
January 24th, 2005, 11:08 AM
nope

Ron
January 24th, 2005, 11:09 AM
:cry:

Ron
January 24th, 2005, 11:10 AM
Okay, last thing I can think of before I have to start bugging the Armadillo people. please replace the dll below.

birty
January 24th, 2005, 11:17 AM
yep that crashes too

Ron
January 24th, 2005, 11:18 AM
Thanks for your help, I am going to email the Armadillo people to get this sorted out or we are going to have to pull armadillo :(

Ron
January 24th, 2005, 03:45 PM
I got a reply for the Armadillo people. They sent me a new version of their system and asked if the bug is gone. Alan could you test this again for us?

birty
January 24th, 2005, 03:48 PM
it works!!!!! :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

Ron
January 24th, 2005, 03:49 PM
Well I be *** Great news!!!!! I'll let those guys know right away.

Ron
January 24th, 2005, 03:50 PM
Alan thanks for testing this soooo many many times and doing it fast too!! You are in the UK right? I was surprise how long you held on yesterday, considering it was getting quite late for you.

birty
January 24th, 2005, 03:52 PM
i was watching the negotiator which didnt finish till 23:40 and i didn't have a lecture till 10 this morning so it wasnt so bad