PureBasic 4.20 Beta1 (Windows) -- Happy New year!

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

SFSxOI wrote:Really cool! Thank you :)

(BTW, how does CreateRegularExpression work? and.... for ExtractRegularExpression, are there any certain requirements for the array or is it just any array?)
Example

Code: Select all

;First start : http://en.wikipedia.org/wiki/Regular_expression
;PB use http://www.pcre.org/


;Pattern$="[abc]" ; a, b or c
;Pattern$="[[:digit:]]" ; Digit
Pattern$="[c].[a]" ;  c.a (. is a joker) 

If CreateRegularExpression(0, Pattern$)

  Dim result$(0)
   
  a = ExtractRegularExpression(0, "abc 6 cqab cra", result$())
 
  For k=0 To a-1
    MessageRequester(Str(k+1) + " / " + Str(a), "Pattern = " + Pattern$ + #LFCR$ + "Result = " + Result$(k))
  Next

Else
  MessageRequester("Error", RegularExpressionError())
EndIf
Please correct my english
http://purebasic.developpez.com/
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Post by electrochrisso »

That was quick I only just started using 410. :)
Thanks you PB Guys. :D
PureBasic! Purely the best 8)
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

WOOHOO! Thanks! :wink:
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

Thankyou, PB teams !
and Happy new year !! :) :) :)
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Great new stuff..thank you very much PB-Team!
And happy new year to all!!
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Code: Select all

- Added: Streaming for OGG and FLAC
- Added: Streaming support for CatchSound()
Does anyone know how this works?
Good programmers don't comment their code. It was hard to write, should be hard to read.
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

traumatic wrote:

Code: Select all

- Added: Streaming for OGG and FLAC
- Added: Streaming support for CatchSound()
Does anyone know how this works?
Get your ass to the purebasic channel on IRC from time to time and maybe some folks will answer you! :twisted:
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

C'mon Pantcho you old schnitzel-lover!
I WAS there and found nothing but the usual idle time! ;)
Good programmers don't comment their code. It was hard to write, should be hard to read.
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

:lol:
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

traumatic wrote:C'mon Pantcho you old schnitzel-lover!
I WAS there and found nothing but the usual idle time! ;)
Wrong time to join i would say.
Its pretty busy past months....
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Berikco wrote:Wrong time to join i would say.
Its pretty busy past months....
Good to hear! I'll give another try then.

If there wasn't all the ironing...


Ok, enough OT. Does anyone know about the new streaming capabilities? :)
Good programmers don't comment their code. It was hard to write, should be hard to read.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Yup, IRC was helpful :)


Both LoadSound() and CatchSound() take a new optional parameter:

Code: Select all

#PB_Sound_Streaming = 1 ; will be added to the .res soon...

If InitSound() And UseOGGSoundDecoder()
  If LoadSound(0, "yourMusic.ogg", #PB_Sound_Streaming)
    PlaySound(0)
    MessageRequester("streaming", "...")
  EndIf
EndIf
I just ran short test and the memory consumption in my case dropped from 21MB to 3.5MB - so streaming seems to work.

It's always good to have some fr34ks around :D Thank you!
Good programmers don't comment their code. It was hard to write, should be hard to read.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

traumatic wrote:It's always good to have some fr34ks around
:lol:
Dare2 cut down to size
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Smells like fish here :lol:
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

Berikco wrote:Smells like fish here :lol:
yes it does... how dare you compare the smell of that large trout to my wife LOL.
Post Reply