PureBasic 6.30 beta 2 is ready !

Developed or developing a new product in PureBasic? Tell the world about it.
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 2 is ready !

Post 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.
User avatar
idle
Always Here
Always Here
Posts: 5915
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: PureBasic 6.30 beta 2 is ready !

Post 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);
User avatar
marcoagpinto
Addict
Addict
Posts: 1054
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.30 beta 2 is ready !

Post by marcoagpinto »

Thank you, dear @Fred and Team!

<3 <3 <3 <3 <3 <3 <3 <3
zikitrake
Addict
Addict
Posts: 876
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Re: PureBasic 6.30 beta 2 is ready !

Post 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 :)
PB 6.21 beta, PureVision User
Axolotl
Addict
Addict
Posts: 841
Joined: Wed Dec 31, 2008 3:36 pm

Re: PureBasic 6.30 beta 2 is ready !

Post 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:
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
dige
Addict
Addict
Posts: 1410
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PureBasic 6.30 beta 2 is ready !

Post by dige »

Great! Thanks a lot! :D
"Daddy, I'll run faster, then it is not so far..."
PeDe
Enthusiast
Enthusiast
Posts: 287
Joined: Sun Nov 26, 2017 3:13 pm

Re: PureBasic 6.30 beta 2 is ready !

Post 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.

Peter
User avatar
minimy
Enthusiast
Enthusiast
Posts: 634
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.30 beta 2 is ready !

Post by minimy »

Great!! thanks PB team!!
If translation=Error: reply="Sorry, Im Spanish": Endif
threedslider
Enthusiast
Enthusiast
Posts: 405
Joined: Sat Feb 12, 2022 7:15 pm

Re: PureBasic 6.30 beta 2 is ready !

Post by threedslider »

Awesome ! Thanks for sharing this info and fixes :mrgreen:
Quin
Addict
Addict
Posts: 1134
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.30 beta 2 is ready !

Post 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 :)
User_Russian
Addict
Addict
Posts: 1550
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.30 beta 2 is ready !

Post 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.
Post Reply