Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Entries > Release id #84811 : HVSC Manager 1.1
2009-11-25 10:24
Stainless Steel

Registered: Mar 2003
Posts: 966
Release id #84811 : HVSC Manager 1.1

Hi guys.
Just wanted to open a thread for anyone who might have problems,bug reports or feature requests concerning this tool.
 
... 11 posts hidden. Click here to view all posts....
 
2009-11-25 15:53
Stainless Steel

Registered: Mar 2003
Posts: 966
Some background infos.

I couldnt (yet) manage to implement libsidplay in C# so i have to resort to utilizing sidplay.exe instead.

This has some disadvantages, but also benefits.

In order to hide the sidplay gui from the user (which turned out to be quite tricky. Simply launching it as a hidden window did not suffice, since that method steals the focus from whatever window is activated at that moment) I am spawning the sidplay.exe process in a virtual desktop. So you still can see the sidplay.exe process in the taskmanager under your own processes, but its gui is showing on a virtual desktop which itself never shown.

One disadvantage of this method is, I have no direct control over the sid output itself.
I can only fire up the sidplay process and terminate it (and, using some dirty trickery, pause/unpause the entire sidplay process).

Also the timers inside the tool can only estimate the elapsed time of a playing tune, the timer starts once the sidplay.exe process has launched. If sidplay, for some reason, takes some time itself before it can actually play the tune, i have no way of registering that event.

Another drawback is, I can not control the volume of the sidplay soundstream directly (yet, i'm still trying to hack my way into the wavout soundbuffer of windows with C#). This left me only one option to make volume changing/fadout available, by directly changing the windows sound levels.

I'm aware that this is a rather "dirty" way of doing it. Any changes you make to the volume levels inside the tool will directly effect your windows mixer settings and vice versa.

On the other hand, if any updates to Sidplay and/or new filterpresets or what ever are published,
I dont have to worry about updating my tool regarding those. You just configure the tool to use the new sidplay.exe and you're set to go.

About the "Spectrum analyzer" (vista/seven only).

This is not really a spectrum analyzer. What I'm doing here is i grab the masterpeak level from whatever windows is currently playing and map that to the bargraph (bar number 7). Obviously this would only show a single bar that raises/drops to the overall peaklevel. In order to make it look more interesting (and really, its just a visual gimmick) i randomly calculate the remaining bar levels from the range 0 to the maximum current peak level for each bar per frame. voila.


2009-11-25 19:16
iAN CooG

Registered: May 2002
Posts: 3197
I was just curious to see what's this for but had to try at work where I can access to a XP machine with .net 3.5
Here's my bugreport.

1)
HVSC directory do not require a subdir called "c64music" and does not require to be called like that. It's a wild assumption.
HVSC directory can be ANY dir which it's composed by these subdirs:

DEMOS
DOCUMENTS
GAMES
MUSICIANS

nothing else. I have it in D:\hvsc\ for example.
I've created a temporary copy of the whole dir called D:\C64music\ and seems to accept it... but seems only, see below.

2)
there is no "cancel" from the settings window, if I exit with either "\" as HVSC path + "OK" button, or Alt-F4, an exception
is raised because there are no sanity checks, probably assumes all vars from the setting being filled and correct, dunno.

************** Testo dell'eccezione **************
System.ArgumentOutOfRangeException: Index e length devono fare riferimento a una posizione nella stringa.
Nome parametro: length
in System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
in System.String.Substring(Int32 startIndex, Int32 length)
in HVSCScanner.Form1.Settings_Click(Object sender, EventArgs e)
in System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
in System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
in System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
in System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
in System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
in System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
in System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.ToolStrip.WndProc(Message& m)
in System.Windows.Forms.MenuStrip.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

(say THANK YOU M$ for putting localized error messages in his framework)

3) Why can't I directly type the path to sidplay? It works only if I use the button Change but I'm not keyboard impaired and I can type c:\sid\sidplay2w.exe ! =)
Same goes for all the other paths of course.

4) Settings Window is also always on top, I find it more annoying than useful but it's just me as I needed to do alt-tab to check the path in Far manager window, so I had to move it almost offscreen.

5) import playlist, don't select anything and press Esc: starts anyway asking for scanning this and that... scan what? I've not selected anything =)
Of course errors occour if you say YES to questions.


6) Now I'm a bit lost. I've done "scan HVSC" and nothing happens. 0 entries
I've verified with FileMon, all the subdirs are being found

16.58.51 HVSCManager.exe:888 OPEN D:\C64music\MUSICIANS\0-9\20CC\van_Santen_Edwi n\ SUCCESS Options: Open Directory Access: All
16.58.51 HVSCManager.exe:888 DIRECTORY D:\C64music\MUSICIANS\0-9\20CC\van_Santen _Edwin\ SUCCESS FileBothDirectoryInformation: *
16.58.51 HVSCManager.exe:888 DIRECTORY D:\C64music\MUSICIANS\0-9\20CC\van_Santen _Edwin\ SUCCESS FileBothDirectoryInformation

etc, so it's not a problem of wrong paths.

Does this only works on existing playlists? Should I create a playlist of whole HVSC to freely jump from one dir to another??

I can't do anything else than deleting it.
2009-11-25 19:25
Stainless Steel

Registered: Mar 2003
Posts: 966
Duly noted.
2009-11-25 20:16
Mr. SID

Registered: Jan 2003
Posts: 424
I remember Inge also having problems with getting libsidplay2 interfacing with C# code. It's been ages since I had to call unsafe C++ code from a C# frontend, but I remember that it wasn't really hard.
What problems did you encounter that you couldn't solve?
2009-11-25 20:26
Stainless Steel

Registered: Mar 2003
Posts: 966
I cant explicitly recall where in the process i got hung up, and i cant seem to find the forum pages on sourceforge where i had described the problem at the time.
If you happen to have any example C# source for interfacing with the libsidplay stuff I'd highly appreciate it.
2009-11-26 10:08
Stainless Steel

Registered: Mar 2003
Posts: 966
Quoting ian
HVSC directory do not require a subdir called "c64music" and does not require to be called like that. It's a wild assumption.
I took the folder structure that came out of the hvsc.zip file. Ofcourse, i could have made the path references totally relative and independant of any destinct folder (like, looking for the mentioned hvsc folder structure and use the parent of that as a reference point). Maybe in some upcoming version.

Concerning the missing sanity checks, yes there are some places where i havent built in any. You seem to have found them quite well :-D

As mentioned, it's still beta and i'll try to fix any reported bugs.

Cheers.
2009-11-30 08:38
Stainless Steel

Registered: Mar 2003
Posts: 966
A Small update is about done. I've fixed the window resizing, according to Steppe's request.
Now it is freely resizable and works with the Windows 7 Snap to feature.
I've also added SID (6581/8580) and timer (VBI/CIA) detection.
2009-12-16 23:47
Steppe

Registered: Jan 2002
Posts: 1510
So, when's an update coming out?
I noticed that clicking into the text fields always sends you into edit-mode, I find this mildly annoying. I wonder who's editing his playlists by hand all the time?
2009-12-17 07:49
Stainless Steel

Registered: Mar 2003
Posts: 966
As soon as i get my ass up :-D
2009-12-19 14:32
Steppe

Registered: Jan 2002
Posts: 1510
Houston, we found a bug:

1. I can't seem to leave the filter by composer mode unless I close and open the app again. You know, that little dropdown up there where I can select by composer or handle. I want to go back to "show all, don't filter, idiot!"

2. Enabling the filter by composer and saving the playlist right afterwards only saves what is shown in the filtered list, thus overwriting my carefully produced playlist. Aargh!

You know I was working on my best of list, then all of a sudden I wanted to hear some JT stuff. So I use that dropdown list at the top to quickly jump to some JT tunes and after I saved (overwrite, yes, of course) and reopened it only contained JT tunes. This is really an annoying bug...
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Alakran_64
zscs
BYB/Hokuto Force
Mike
DnP
Mibri/ATL^MSL^PRX
Twilight/Excess/Arcade
Martin Piper
Raf/Vulture Design
slimeysmine
BlackJack/Civitas
Guests online: 177
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.049 sec.