It would be great to add MP3 support to PB.
PureBasic 6.10 LTS is out !
-
User_Russian
- Addict

- Posts: 1593
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.10 beta 3 is out !
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.
It would be great to add MP3 support to PB.
Re: PureBasic 6.10 beta 3 is out !
Big +1 on this one. Mp3 would be amazing.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.![]()
Re: PureBasic 6.10 beta 3 is out !
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 wrote: Fri Jan 19, 2024 11:07 pmBig +1 on this one. Mp3 would be amazing.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.![]()
Re: PureBasic 6.10 beta 3 is out !
It appears the MP3 patents expired in 2017, making this a nonissue.
Receipt: https://www.theregister.com/2017/05/16/ ... y_noticed/
Receipt: https://www.theregister.com/2017/05/16/ ... y_noticed/
Inner wrote: Sat Jan 20, 2024 1:03 amDon'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 wrote: Fri Jan 19, 2024 11:07 pmBig +1 on this one. Mp3 would be amazing.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.![]()
Re: PureBasic 6.10 beta 3 is out !
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 Does 6.10 support 24×24 and higher images in all gadgets such as pop-up menus, menus, tabs, statusbars, toolbars, combogadgets, etc.?
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
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: PureBasic 6.10 beta 3 is out !
@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.
Editing to add that this only effects Windows 10 and earlier, not 11.
Re: PureBasic 6.10 beta 3 is out !
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!
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 !
For testing: Which audio formats are officially supported? Or has nothing changed here (wav, ogg*, flac*)?
* with encoder
* with encoder
Re: PureBasic 6.10 beta 3 is out !
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 !
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 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).
Re: PureBasic 6.10 beta 3 is out !
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 !
Thanks Fred.
- StarBootics
- Addict

- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: PureBasic 6.10 beta 3 is out !
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
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 !
- marcoagpinto
- Addict

- Posts: 1076
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: PureBasic 6.10 beta 3 is out !
@Fred
Fredddy!!!!
Will 6.10 bring GCC 13.2?
GCC 13.2 is from 6 months ago and maybe it is stable enough?
Fredddy!!!!
Will 6.10 bring GCC 13.2?
Code: Select all
GCC 13.2 (changes)
Status: 2023-07-27 (regression fixes & docs only).Re: PureBasic 6.10 beta 3 is out !
Code: Select all
Updated: Toolchain on Windows now use VisualStudio 2022 and new MSVCRT for faster PureBasic programs and easier external libs integration.


