Page 11 of 23
Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 8:28 pm
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.

Re: PureBasic 6.10 beta 3 is out !
Posted: Fri Jan 19, 2024 11:07 pm
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.
Re: PureBasic 6.10 beta 3 is out !
Posted: Sat Jan 20, 2024 1:03 am
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 )
Re: PureBasic 6.10 beta 3 is out !
Posted: Sat Jan 20, 2024 2:39 am
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 )
Re: PureBasic 6.10 beta 3 is out !
Posted: Sat Jan 20, 2024 12:57 pm
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).
Re: PureBasic 6.10 beta 3 is out !
Posted: Sat Jan 20, 2024 7:09 pm
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.
Re: PureBasic 6.10 beta 3 is out !
Posted: Sun Jan 21, 2024 6:23 am
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!

Re: PureBasic 6.10 beta 3 is out !
Posted: Sun Jan 21, 2024 1:50 pm
by Lebostein
For testing: Which audio formats are officially supported? Or has nothing changed here (wav, ogg*, flac*)?
* with encoder
Re: PureBasic 6.10 beta 3 is out !
Posted: Sun Jan 21, 2024 3:25 pm
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).
Re: PureBasic 6.10 beta 3 is out !
Posted: Sun Jan 21, 2024 6:21 pm
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.
Re: PureBasic 6.10 beta 3 is out !
Posted: Mon Jan 22, 2024 10:10 am
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.
Re: PureBasic 6.10 beta 3 is out !
Posted: Mon Jan 22, 2024 5:27 pm
by akee
Thanks Fred.
Re: PureBasic 6.10 beta 3 is out !
Posted: Tue Jan 23, 2024 1:30 am
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
Re: PureBasic 6.10 beta 3 is out !
Posted: Wed Jan 24, 2024 7:09 pm
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?
Re: PureBasic 6.10 beta 3 is out !
Posted: Wed Jan 24, 2024 8:54 pm
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?