Page 4 of 8

Re: PureBasic 6.30 beta 2 is ready !

Posted: Fri Sep 12, 2025 8:34 pm
by Fred
beta 2 is out ! Mostly bug fixes as you can see:

Code: Select all

- Added: #PB_FTP_Debug flag for OpenFTP() to allow to get more info (in the console) about the connection.
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.30 beta 2 is ready !

Posted: Fri Sep 12, 2025 10:23 pm
by idle
great header section is working so far! :D

Code: Select all

;Test of miniaudio duplex record and playback 
;records from default input to default output 

;download and save adjust path to suit for include 
;https://atomicwebserver.com/miniaudio_11_23.h

HeaderSection 
 
#include "E:\idle\miniaudio\miniaudio_11_23.h"; 

EndHeaderSection 

InitSound() 

ProcedureC data_callback(*Device,*Output,*Input,frameCount)
  Protected amount 
  If frameCount  
    
    !ma_device *pdevice = p_device; 
    !v_amount = v_framecount * ma_get_bytes_per_frame(pdevice->capture.format, pdevice->capture.channels);
    If amount <> 0  
      CopyMemory(*Input,*Output,amount) 
    EndIf
  EndIf 
EndProcedure 
 
Global pcb = @data_callback() ;need to reference the function or PB won't include it  

OpenConsole()

!ma_result result;
!ma_device_config deviceConfig;
!ma_device device;
 
!deviceConfig = ma_device_config_init(ma_device_type_duplex);
!deviceConfig.capture.pDeviceID  = NULL;
!deviceConfig.capture.format     = ma_format_s16;
!deviceConfig.capture.channels   = 2;
!deviceConfig.capture.shareMode  = ma_share_mode_shared;
!deviceConfig.playback.pDeviceID = NULL;
!deviceConfig.playback.format    = ma_format_s16;
!deviceConfig.playback.channels  = 2;
!deviceConfig.dataCallback       = &f_data_callback; 

!result = ma_device_init(NULL, &deviceConfig, &device);

!if (result != MA_SUCCESS) {
   MessageRequester("error","failed to config")  
   End 
!}

PrintN("start recording") 

!ma_device_start(&device);

PrintN("press enter to end") 
Input();

!ma_device_uninit(&device);

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 6:55 am
by marcoagpinto
Thank you, dear @Fred and Team!

<3 <3 <3 <3 <3 <3 <3 <3

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 8:23 am
by zikitrake
Windows: [Done] Virtual list works in 6.21 but not int 6.30beta1
Thank you for your great work! My software compiles and works fine now with the Beta 2 version :)

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 2:21 pm
by Axolotl
Thanks, @Fred and Team.
I'm currently testing my latest project. So far, nothing broken. (As you may know: I always use some “not supported” API stuff) :mrgreen:

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 4:08 pm
by dige
Great! Thanks a lot! :D

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 5:20 pm
by PeDe
With Beta 2, Linux now returns an incorrect value for ‘GetGadgetAttribute(PanelNumber, #PB_Panel_ItemHeight)’. This may be related to the fix for the bug ‘Linux: [Done] PB v6.xx ToolBarHeight on Linux’.
The IDE also has a bug in the procedure browser and issues where the icons at the bottom are not visible.

Edit: When I turn off the toolbar in the IDE, the buttons at the bottom of the Procedure Browser or Issues are displayed again.

Peter

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 7:35 pm
by minimy
Great!! thanks PB team!!

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 9:13 pm
by threedslider
Awesome ! Thanks for sharing this info and fixes :mrgreen:

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sat Sep 13, 2025 10:31 pm
by Quin
Thanks, Fred and team!
Haven't been spending much time with PB these days, but when I next sit down with it I'll have some awesome features to try out :)

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sun Sep 14, 2025 12:01 am
by User_Russian
Function OpenHID() works differently on Windows / Linux / MacOS platforms.

Code: Select all

Debug OpenHID(0, #VID, #PID)
Debug OpenHID(1, #VID, #PID)
Debug OpenHID(2, #VID, #PID)
Debug OpenHID(3, #VID, #PID)
Debug OpenHID(4, #VID, #PID)
Debug OpenHID(5, #VID, #PID)
Debug OpenHID(6, #VID, #PID)
Debug OpenHID(7, #VID, #PID)
Debug OpenHID(8, #VID, #PID)
Debug OpenHID(9, #VID, #PID)
On Windows all calls successful.
On Linux, only the first call succeeds (other calls the function will return 0).
In MacOS the number of successful calls is random, and it is different each time run it.

I don't know if this is a bug or a feature of the hidapi library. But it's strange that the function works so differently.

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sun Sep 14, 2025 8:14 am
by Fred
Is it the same with the path function ?

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sun Sep 14, 2025 3:30 pm
by User_Russian
Functions OpenHID() and OpenHIDPath() work the same way.
I figured out why MacOS has a random number of successful results. When testing I used a composite HID device, which appears in the system as 4 logical HID devices and the same VID and PID.
When I tested a regular HID device (not composite), there was only one successful result on MacOS.

Re: PureBasic 6.30 beta 2 is ready !

Posted: Sun Sep 14, 2025 4:56 pm
by Fred
I don't now what can be done about that TBH

Re: PureBasic 6.30 beta 2 is ready !

Posted: Mon Sep 15, 2025 12:15 pm
by Clanzer
In Ubuntu with 6.30 beta2 it still enumerates my HID device but still the same error when connecting to HID, same code works fine in Windows.

Image