PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 3 is out !

Post by User_Russian »

miniaudio supports mp3. But in the PB version, this is disabled (probably the static library is compiled with the MA_NO_MP3 flag). :?
It would be great to add MP3 support to PB. :)
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Quin »

User_Russian wrote: Fri Jan 19, 2024 8:28 pm miniaudio supports mp3. But in the PB version, this is disabled (probably the static library is compiled with the MA_NO_MP3 flag). :?
It would be great to add MP3 support to PB. :)
Big +1 on this one. Mp3 would be amazing.
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Re: PureBasic 6.10 beta 3 is out !

Post by Inner »

Quin wrote: Fri Jan 19, 2024 11:07 pm
User_Russian wrote: Fri Jan 19, 2024 8:28 pm miniaudio supports mp3. But in the PB version, this is disabled (probably the static library is compiled with the MA_NO_MP3 flag). :?
It would be great to add MP3 support to PB. :)
Big +1 on this one. Mp3 would be amazing.
Don't you need to pay some sort of license for mp3? from google I got 2 opinions, you did but now do not. ( which could be a reason for MA_NO_MP3 flag being set if paying a license is true )
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Quin »

It appears the MP3 patents expired in 2017, making this a nonissue.
Receipt: https://www.theregister.com/2017/05/16/ ... y_noticed/
Inner wrote: Sat Jan 20, 2024 1:03 am
Quin wrote: Fri Jan 19, 2024 11:07 pm
User_Russian wrote: Fri Jan 19, 2024 8:28 pm miniaudio supports mp3. But in the PB version, this is disabled (probably the static library is compiled with the MA_NO_MP3 flag). :?
It would be great to add MP3 support to PB. :)
Big +1 on this one. Mp3 would be amazing.
Don't you need to pay some sort of license for mp3? from google I got 2 opinions, you did but now do not. ( which could be a reason for MA_NO_MP3 flag being set if paying a license is true )
User avatar
jacdelad
Addict
Addict
Posts: 1992
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PureBasic 6.10 beta 3 is out !

Post by jacdelad »

marcoagpinto wrote: Fri Jan 19, 2024 7:01 pm Does 6.10 support 24×24 and higher images in all gadgets such as pop-up menus, menus, tabs, statusbars, toolbars, combogadgets, etc.?
This is a limitation set by Windows itself. You can circumvent this, but that's a lot of work and ownerdrawing and such.
marcoagpinto wrote: Fri Jan 19, 2024 7:01 pm Do the setcolour commands now work with all gadgets?
Same here. Look at object color from ChrisR in the Tips and Tricks, he did the boring coding part (and did it very well).
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Quin »

@team, is it possible to set the audio device to idle when using WASAPI on Windows? It seems that the switch to WASAPI stops certain machines from auto-sleeping. My screen reader, NVDA, hit this issue too, and the solution was something like putting the device in idle mode.

Editing to add that this only effects Windows 10 and earlier, not 11.
Omara1993
New User
New User
Posts: 3
Joined: Sat May 02, 2020 11:56 pm

Re: PureBasic 6.10 beta 3 is out !

Post by Omara1993 »

Hello!
Looping streaming sounds appears to only play the sound once. So If you create a sound as streaming and then play it as #PB_Sound_Loop, the flag appears to be ignored as the sound only plays once instead of in a continuous, looping manner. This was tested on windows, I am unsure how other platforms react.
How to recreate:
Initialize sound system, I have tested flac and ogg.
Load either a flac or ogg sound and set the #PB_Sound_Streaming flag.
Play the sound and set the #PB_Sound_Loop flag.
The sound should loop, but as you'll see, the sound does play, but only once.
Kind regards,
A happy Pure Basic user! :)
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: PureBasic 6.10 beta 3 is out !

Post by Lebostein »

For testing: Which audio formats are officially supported? Or has nothing changed here (wav, ogg*, flac*)?
* with encoder
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Fred »

Nothing has changed, we don't use built-in miniaudio decoder as it will increase size for every exe using sound (and we already have our own decoders).
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Quin »

Fred wrote: Sun Jan 21, 2024 3:25 pm Nothing has changed, we don't use built-in miniaudio decoder as it will increase size for every exe using sound (and we already have our own decoders).
What kind of increase are we talking here? It may be completely worth it, especially because we could possibly get MP3 like discussed above.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 3 is out !

Post by Fred »

It's about 500KB. Built-in decoder also also doesn't comply to to current PB requirement as it only works with files (and not with CatchSound()). Adding MP3 could be done later, it's not an issue.
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 6.10 beta 3 is out !

Post by akee »

Thanks Fred.
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PureBasic 6.10 beta 3 is out !

Post by StarBootics »

Hello everyone,

I'm experiencing an Invalid Memory Access error with the ASM backend and no error with the C backend inside a super large program (around 77 000 lines of codes).

Quite frankly I don't know how I can track down this problem.

EDIT : Got It, I will post a bug report about this problem.

Thanks anyways for version 6.10.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
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 »

@Fred

Fredddy!!!!

Will 6.10 bring GCC 13.2?

Code: Select all

GCC 13.2 (changes)
    Status: 2023-07-27 (regression fixes & docs only).
GCC 13.2 is from 6 months ago and maybe it is stable enough?
StackC
New User
New User
Posts: 8
Joined: Sat Jun 17, 2023 6:35 pm

Re: PureBasic 6.10 beta 3 is out !

Post by StackC »

Code: Select all

Updated: Toolchain on Windows now use VisualStudio 2022 and new MSVCRT for faster PureBasic programs and easier external libs integration.
What are the consequences of this? Will applications compiled with the new version of PureBasic be able to run on each supported Windows version (Vista, 7, ...) without the need of installing any MSVCRT runtime package?
Post Reply