PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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.
breeze4me
Enthusiast
Enthusiast
Posts: 633
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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?
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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().
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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
breeze4me
Enthusiast
Enthusiast
Posts: 633
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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. :D
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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.
User avatar
tola
User
User
Posts: 13
Joined: Tue May 03, 2011 10:13 am
Location: France - Loire 42

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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
+--=--=--=--=--=--=--=--=--=--+
french coder
Mesa
Enthusiast
Enthusiast
Posts: 433
Joined: Fri Feb 24, 2012 10:19 am

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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.
User avatar
tola
User
User
Posts: 13
Joined: Tue May 03, 2011 10:13 am
Location: France - Loire 42

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Post 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 !
+--=--=--=--=--=--=--=--=--=--+
french coder
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post 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.
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: PureBasic 6.10 beta 3 is out !

Post by GG »

Thanks Fred !
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic 6.10 beta 3 is out !

Post by skywalk »

Wow! Thanks for SQLite update.
Not loving how laborious installing MS Visual Studio Community Edition has become. :(
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
marcoagpinto
Addict
Addict
Posts: 1039
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post 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!
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Fred »

Just read the release note and you will know.
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Quin »

Miniaudio on Windows! Happy, happy Friday to me! Thanks Fred!
Post Reply