• Welcome to Theos PowerBasic Museum 2017.

News:

Attachments are only available to registered users.
Please register using your full, real name.

Main Menu

BassBox

Started by Patrice Terrier, October 08, 2007, 10:57:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Emil Weiss

Quote from: Patrice Terrier on June 16, 2008, 04:34:07 PM
Emil,

To make the progress bar like this winamp example, take a look at the "Impulse" plugin source code (the part that is drawn on top, and consider just the left or right channel part).

...
 

i will show in to this code ;)

greets Emil

Patrice Terrier

#511
Emil

I think that you didn't check your BassVis example on a VISTA computer  8)

We can't even speak of FPS (display one single frame each second or two...)

Note: My VISTA is running in DWM composited mode (AERO)

Added:
Also it is not a good idea to change the display resolution on VISTA AERO, and it is even more problematic when you are using Dual display like myself.

...
 
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

Emil,

Also the volume level has no effect on VISTA (the whole mixer API has changed there)
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Emil Weiss

Quote from: Patrice Terrier on June 16, 2008, 04:54:06 PM
Emil

I think that you didn't check your BassVis example on a VISTA computer  8)

We can't even speak of FPS (display one single frame each second or two...)

Note: My VISTA is running in DWM composited mode (AERO)

Added:
Also it is not a good idea to change the display resolution on VISTA AERO, and it is even more problematic when you are using Dual display like myself.

...
 

i have no Vista ;)
no idea what is wrong in vista
on xp with nvidea 7800 SLI and AMD 64 2400 MHZ run fine in 1280x1024

show pic

greets Emil

Emil Weiss

Quote from: Patrice Terrier on June 16, 2008, 05:03:56 PM
Emil,

Also the volume level has no effect on VISTA (the whole mixer API has changed there)


render from Device not work in this Sample not finish yet ;)
or your mean nothing Render ?

greets Emil

Patrice Terrier

Emil,

I am speaking of the audio level trackbar, moving the slider doesn't change the audio level, that is always being played at maximum level.

I have spent myself several monthes to master the new VISTA API, and I can say that it was a huge work...

Good luck  :-[
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Emil Weiss

#516
Quote from: Patrice Terrier on June 16, 2008, 05:16:55 PM
Emil,

I am speaking of the audio level trackbar, moving the slider doesn't change the audio level, that is always being played at maximum level.

I have spent myself several monthes to master the new VISTA API, and I can say that it was a huge work...

Good luck  :-[

yes think is hard .. i have read any in Bass Forum for this problem
can not programming on  a operation system what i not have.

XP all work good.. hmmm
no user has tell me that any wrong from Bass Forum ;) under Vista
Helium musikmanager work with bassvis on vista and Xp with no problem

EDIT:
will change any when Windows 7 avaiable

greets Emil

Patrice Terrier

#517
QuoteHelium musikmanager work with bassvis on vista and Xp with no problem

I can only speak of what i see on my VISTA computer, and so far it is unusable.

It looks like if OpenGL was software emulated and not hardware managed, perhaps a DirectX emulation?

VISTA is there and it is a reality. It can't be ignored anymore ...

Added:
Switch to PowerBASIC we are always pleased to welcome talented SDK programmers  ;D
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Emil Weiss

QuoteI can only speak of what i see on my VISTA computer, and so far it is unusable.
It looks like if OpenGL was software emulated and not hardware managed, perhaps a DirectX emulation?
VISTA is there and it is a reality. It can't be ignored anymore ...

is Ok ;)

QuoteSwitch to PowerBASIC we are always pleased to welcome talented SDK programmers
hehehehe i think :) i'm to old switch to new developer language.

work good by me and change any when Windows 7 appears
not for Vista  :-\ sorry

greets Emil

Patrice Terrier

Emil

I am 9 years older than you and i have changed ;)

One more thing with your application that you must fix:

You are changing the way the window are being moved hover the desktop, and you don't restore the previous state when leaving, forcing the user to re-enable the "full move window mode" manualy...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Emil Weiss

#520
QuoteAlso it is not a good idea to change the display resolution on VISTA AERO, and it is even more problematic
when you are using Dual display like myself.

user can ;)
i'm use in my sample this funktion from bassvis
when doubleclick on Panel..

    BASSVISKIND_BASSBOX:
        BASSVIS_SetFullscreen(@mVisParam,
                              Panel1.Handle,
                              frmMain.Handle,
                              490,
                              8,
                              320,
                              240,
                              FullScreen,
                              FScreenWidth,
                              FScreenHeight);


user can ignore this function and set the fullscreen manualy
when used Vista this is not a problem ;)

EDIT:
user can fellow:
SetParent(Panel1.Handle, GetDesktopWindow);
SetWindowPos(Panel1.Handle,x,x,x ...
this nothing changed the Screen Resolution ;)

greets Emil

Patrice Terrier

Emil

For the move window I am speaking of this API:
SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, %FALSE, BYVAL %NULL, 0&)
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Emil Weiss

#522
Quote from: Patrice Terrier on June 16, 2008, 07:12:56 PM
Emil

For the move window I am speaking of this API:
SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, %FALSE, BYVAL %NULL, 0&)

i'm use this ;)
procedure Tfrm_Gen.picBottomMMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: integer);
begin
  //release capture
  SetFullWindowDrag(frm_Gen.Handle, True);
  //free Release
  SetFullWindowDrag(frm_Gen.Handle, False);
end;


EDIT:
In my Player VB
Public Function SetFullWindowDrag(ByVal hwnd As Long, ByVal ShowFullWindow As Boolean) As Boolean

' Aktiviert oder deaktiviert die Anzeige von Fensterinhalten während des
' Ziehens oder der Größenänderung von Anwendungsfenstern.
' Der Rückgabewert gibt Aufschluss darüber, ob der Aufruf zu einer Änderung
' gegenüber der vorherigen Einstellung geführt hat (True) oder nicht (False).

Dim lOldSetting As Long
Dim lSuccess    As Long
' Bisherige Einstellung ermitteln:

    lSuccess = SystemParametersInfo(SPI_GETDRAGFULLWINDOWS, 0&, lOldSetting, 0)
    If lSuccess = 0 Then
        ' Der abfragende Aufruf war nicht erfolgreich
        ' (z.B. Windows 95 ohne "PLUS!"-Pack).
        Exit Function ' Rückgabewert bleibt False
    End If
    ' Eine Aktion ist nur dann notwendig, wenn sich der bisherige
    ' vom gewünschten Wert unterscheidet:
    If CBool(lOldSetting) <> ShowFullWindow Then
        ' Wert ändern und Erfolg prüfen:
        lSuccess = SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, Abs(CLng(ShowFullWindow)), ByVal 0&, SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
        If lSuccess Then
            SetFullWindowDrag = True
            ReleaseCapture
            SendMessage hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
            If stndPlayList = 1 Then
                SaveSetting App.EXEName, "Playlist", "PlaylistSize", STR$(frmPlayList.Width) & "," & STR$(frmPlayList.Height)
                SaveSetting App.EXEName, "Playlist", "PlaylistPos", STR$(frmPlayList.left) & "," & STR$(frmPlayList.tOp)
            End If
        End If
    End If
   
End Function


greets Emil

Emil Weiss

when move the Window and the flag in console
Window content in drag show then my code do nothing ;)

only you have the Flag set to other option
then my code changed it and restore  to your settings when lost the button up

Quote' Eine Aktion ist nur dann notwendig, wenn sich der bisherige
    ' vom gewünschten Wert unterscheidet:

Quote'An action is only necessary if the current
     'Differs from the desired value:

greets Emil

Patrice Terrier

I confirm that your code changes the setting.

try it with the option "with GenBitmap" then you will see that previous state is not restored.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com