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