Page 10 of 23
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Sun Jan 14, 2024 3:36 pm
by Lebostein
Fred wrote: Sun Jan 14, 2024 9:30 am
There is a 32 channels limit when playing sound simultinaously (once a sound play is finished the channel is reused. Its not an OS limitation ans can be raised if needed. How many do you need ? May be
E an extra param in InitSound() could be useful.
Would be useful! It seems with Windows there is no limit? Maybe it is higher by default:
https://www.purebasic.fr/english/viewtopic.php?t=83335
With my little music box simulator I break this limit with some fast songs with many notes at the same time (and a single sound take up to 4 seconds before they fade out). For me 64 would be enough. But perhaps there are other applications where an individual setup makes sense.
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Sun Jan 14, 2024 5:10 pm
by breeze4me
Added: #PB_EventType_ColumnClick for ListIconGadget()
By any chance, is there a command to know which column is clicked when there is more than one column?
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Sun Jan 14, 2024 7:20 pm
by wombats
breeze4me wrote: Sun Jan 14, 2024 5:10 pm
Added: #PB_EventType_ColumnClick for ListIconGadget()
By any chance, is there a command to know which column is clicked when there is more than one column?
You can use #PB_ListIcon_ClickedColumn with GetGadgetAttribute().
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Sun Jan 14, 2024 10:46 pm
by Quin
Fred wrote: Sun Jan 14, 2024 9:30 am
@luis, its planned to switch on Windows as well as I want to use advanced miniaudio features like spécialisation ans may be recording
Obviously you don't want to set any deadlines, but is this planned for a latter beta of 6.10 or more targeting 6.20? Miniaudio on Mac is amazing (it'll finally let me port all my games and software!), but recording and spacializing? That sounds like heaven is real
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Mon Jan 15, 2024 5:49 am
by breeze4me
wombats wrote: Sun Jan 14, 2024 7:20 pm
breeze4me wrote: Sun Jan 14, 2024 5:10 pm
Added: #PB_EventType_ColumnClick for ListIconGadget()
By any chance, is there a command to know which column is clicked when there is more than one column?
You can use #PB_ListIcon_ClickedColumn with GetGadgetAttribute().
Thank you. It works.

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Mon Jan 15, 2024 10:20 am
by Fred
Quin wrote: Sun Jan 14, 2024 10:46 pm
Fred wrote: Sun Jan 14, 2024 9:30 am
@luis, its planned to switch on Windows as well as I want to use advanced miniaudio features like spécialisation ans may be recording
Obviously you don't want to set any deadlines, but is this planned for a latter beta of 6.10 or more targeting 6.20? Miniaudio on Mac is amazing (it'll finally let me port all my games and software!), but recording and spacializing? That sounds like heaven is real
Dunno yet, but probably sooner than later as the lib is already integrated and it was the hard work.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Wed Jan 17, 2024 2:54 pm
by tola
NicTheQuick wrote: Sat Dec 23, 2023 2:18 pm
the.weavster wrote: Fri Dec 22, 2023 7:26 pm
Your WebViewGadget demo above on MX Linux ...
I'm getting Invalid Memory Access on the line:
Code: Select all
BindWebViewCallback(0, "increment", @IncrementJS())
I seem to have all the dependencies listed in the INSTALL script. ( I also have my own wrapper for WebView compiled as libwebview.so on the same PC and that works so I don't think it's a missing dependency ).
I am getting the same error on Ubuntu 22.04.3. Is there something that I am missing?
Hello,
Thank for PB Team !
I have same issue on windows 10.
https://i.imgur.com/SwSkhsb.jpg
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Thu Jan 18, 2024 4:15 pm
by Mesa
Same problem with Windows 10 but if you add
Code: Select all
WebGadget(1, 00, 00, 00, 00,"https://www.purebasic.fr")
before the "repeat", then it works !
Mesa.
Re: PureBasic 6.10 beta 2 - Xmas Release - is out !
Posted: Thu Jan 18, 2024 10:03 pm
by tola
Mesa wrote: Thu Jan 18, 2024 4:15 pm
Same problem with Windows 10 but if you add
Code: Select all
WebGadget(1, 00, 00, 00, 00,"https://www.purebasic.fr")
before the "repeat", then it works !
Mesa.
Hello,
In fact, the code must be like this ....
Code: Select all
Html$ = ~"<button id=\"increment\">Tap me</button>\n"+
~"<div>You tapped <span id=\"count\">0</span> time(s).</div>\n"+
~"<button id=\"compute\">Compute</button>\n"+
~"<div>Result of computation: <span id=\"compute-result\">0</span></div>\n"+
~"<script>\n"+
~" const [incrementElement, countElement, computeElement, "+
~"computeResultElement] =\n"+
~" document.querySelectorAll(\"#increment, #count, #compute, "+
~"#compute-result\");\n"+
~" document.addEventListener(\"DOMContentLoaded\", () => {\n"+
~" incrementElement.addEventListener(\"click\", () => {\n"+
~" window.increment().then(result => {\n"+
~" countElement.textContent = result.count;\n"+
~" });\n"+
~" });\n"+
~" computeElement.addEventListener(\"click\", () => {\n"+
~" computeElement.disabled = true;\n"+
~" window.compute(6, 7).then(result => {\n"+
~" computeResultElement.textContent = result;\n"+
~" computeElement.disabled = false;\n"+
~" });\n"+
~" });\n"+
~" });\n"+
~"</script>";
Procedure IncrementJS(Json$)
Static i
Debug "IncrementJS '"+Json$+"'"
i+1
ProcedureReturn UTF8(~"{ \"count\": "+Str(i)+ "}")
EndProcedure
Procedure ComputeJS(Json$)
Debug "ComputeJS "+Json$
ProcedureReturn UTF8(~"150")
EndProcedure
OpenWindow(0, 100, 100, 400, 400, "Hello", #PB_Window_SystemMenu)
WebGadget(0, 0, 0, 400, 400, "", #PB_Web_Edge) ; <== it's necessary to put this line before for using WebViewGadget() !
WebViewGadget(0, 0, 0, 400, 400)
SetGadgetText(0, Html$)
BindWebViewCallback(0, "increment", @IncrementJS())
BindWebViewCallback(0, "compute", @ComputeJS())
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
... and it's work !
Thank Mesa ! You're a boss !
Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 6:06 pm
by Fred
2024-01-19: beta 3 released, focused on bug fixes and improvements:
Code: Select all
Added: NbMaxChannels parameter for InitSound(). Range from 1 to 254.
Changed: WebViewGadget(): SetGadgetText() now open an URI like WebGadget() and added SetGadgetItemText() with #PB_Web_HtmlCode
Updated: Switched for MiniAudio for Windows as well, so all platform should behave exactly the same now. It use WASAPI on Windows by default for best sound quality.
Updated: Reworked the Music library to use MiniAudio as backend.
Updated: SQLite version to 3.45.0
Bugfixes for this version:This list was created automatically. All updated bug threads from the date of the last final version have been determined.
Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 6:09 pm
by GG
Thanks Fred !
Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 6:15 pm
by skywalk
Wow! Thanks for SQLite update.
Not loving how laborious installing MS Visual Studio Community Edition has become.

Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 7:01 pm
by marcoagpinto
Thanks, Fred and Team!
I can't install it yet since I want a stable version for my PhD software (6.04 LTS).
Does 6.10 support 24×24 and higher images in all gadgets such as pop-up menus, menus, tabs, statusbars, toolbars, combogadgets, etc.?
Do the setcolour commands now work with all gadgets?
Does it allow using the icon in the .ico file in Ubuntu 20.04+ without the use of?:
Code: Select all
; Linux icon - 14/NOV/2014
CompilerIf #PB_Compiler_OS=#PB_OS_Linux
gtk_window_set_icon_(WindowID(#WINDOW_MAIN), ImageID(13))
CompilerEndIf
Thanks!
Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 7:40 pm
by Fred
Just read the release note and you will know.
Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 8:08 pm
by Quin
Miniaudio on Windows! Happy, happy Friday to me! Thanks Fred!