Search found 131 matches

by Martin Verlaan
Tue Oct 21, 2025 10:29 am
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect

In the meantime, I've added many new features and fixed bugs. I've also made the source code public. Anyone interested can view it here: https://github.com/martmix/MixPerfect-Player (it's the first time that I use GitHub, so I hope did everything right) , or visit the "official" website here: https ...
by Martin Verlaan
Sun Sep 01, 2024 2:05 pm
Forum: Coding Questions
Topic: Multiple program instances
Replies: 8
Views: 1613

Re: Multiple program instances

Nice! I wrote a similar Purebasic program years ago
Image
by Martin Verlaan
Mon Apr 01, 2024 9:24 pm
Forum: Coding Questions
Topic: Can not trigger resizing a disabled window
Replies: 3
Views: 529

Re: Can not trigger resizing a disabled window

That's a good point. :oops: Solved the problem with a timer.
by Martin Verlaan
Mon Apr 01, 2024 5:28 pm
Forum: Coding Questions
Topic: Can not trigger resizing a disabled window
Replies: 3
Views: 529

Can not trigger resizing a disabled window

Is there a way to trigger #PB_Event_SizeWindow with a disabled window?

OpenWindow(0, 0, 0, 150, 50, "Window", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_ScreenCentered)
DisableWindow(0, #True)

Repeat
Event = WaitWindowEvent()

Select Event
Case #PB_Event_SizeWindow
Debug "Resize ...
by Martin Verlaan
Mon Apr 01, 2024 8:44 am
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect


If I understand correctly, you need to add tracks to the database and fill in the media data. Let’s say I’m not ready to create a database, I don’t want to waste time on it, but I have music in a folder, and I haven’t found a way to listen to it using the program. For most people, it's interesting ...
by Martin Verlaan
Sun Mar 31, 2024 2:50 pm
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect

No problem. I solved it by using OpenLibrary() instead of Import. This way the BASS library can be loaded from a subfolder.
Example:


PrototypeC BASS_SetConfig (option.l,value.l)
PrototypeC BASS_GetVersion()
PrototypeC BASS_ErrorGetCode()
PrototypeC BASS_Init(device.l,freq.l,flags.l,*win,*dsguid ...
by Martin Verlaan
Sat Mar 30, 2024 7:12 pm
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect

Made some changes and successfully tested it in Fedora, Ubuntu, Mint, Arch, PopOS, Windows 7, 10, 11. You can find the newest zip-files on mixperfect.nl
by Martin Verlaan
Fri Mar 29, 2024 6:56 pm
Forum: Linux
Topic: How to use OpenLibrary() with Linux
Replies: 6
Views: 1770

Re: How to use OpenLibrary() with Linux

Like this:

IncludeFile "pb_include/bass/linux/bass.pbi"



bass.pbi:

;...
Import "../../../assets/bass/linux/libbass.so"
BASS_SetConfig.l(option.l,value.l)
BASS_GetConfig.l(option.l)
;and so on...
EndImport


And I solved the problem in bass.pbi with:
Lib = OpenLibrary(#PB_Any, "assets ...
by Martin Verlaan
Fri Mar 29, 2024 2:59 pm
Forum: Linux
Topic: How to use OpenLibrary() with Linux
Replies: 6
Views: 1770

Re: How to use OpenLibrary() with Linux

Hi mk-soft, thanks for this clear example :!:


But ...
If the BASS library has been properly installed under Linux, there should be no problems with importing.
The library must also be in the correct folder under linux so that it can always be found.


The idea was that my program should work ...
by Martin Verlaan
Fri Mar 29, 2024 10:35 am
Forum: Linux
Topic: How to get the system background color of a window in QT?
Replies: 0
Views: 999

How to get the system background color of a window in QT?

In GTK this works fine to get the system background color of a window

Code: Select all

StartDrawing(WindowOutput(0))
SystemBackgroundColor = Point(0, 0)
StopDrawing() 
But it fails in QT. Does anyone know an alternative way for this subsystem?
by Martin Verlaan
Fri Mar 29, 2024 9:08 am
Forum: Linux
Topic: How to use OpenLibrary() with Linux
Replies: 6
Views: 1770

How to use OpenLibrary() with Linux

For my latest project I used the import-command to load the BASS audio library . However, this appears to cause problems on other computers because BASS is in a subfolder of my program and Import also on other computers refers to the absolute location of the BASS-folder computer on which I compiled ...
by Martin Verlaan
Thu Mar 28, 2024 4:26 pm
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect

Ah, that's clear! I need to study it more, and in the meantime I keep my suggested solution in mind.
by Martin Verlaan
Thu Mar 28, 2024 4:07 pm
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect

That's all code for windows DLL. I assume OpenLibrary() is for Windows only, and Import for Linux. The problem with import is that the compiler remembers the import-location of the machine where it's compiled on. So I think I need to instruct the users to copy the bass folder to /usr/lib/ and also I ...
by Martin Verlaan
Thu Mar 28, 2024 2:45 pm
Forum: Announcement
Topic: MixPerfect
Replies: 33
Views: 11535

Re: MixPerfect

The problem is that I used Import to load the BASS library in Linux. I just tried OpenLibrary() but I have no idea how to import all BASS-functions with that command. Any suggestions?
by Martin Verlaan
Thu Mar 28, 2024 11:11 am
Forum: Linux
Topic: How to solve these Linker errors?
Replies: 2
Views: 925

Re: How to solve these Linker errors?

Thanks for the quick reply. I solved it by installing libgtk-3-dev and libwebkit2gtk-4.0-dev