Developed or developing a new product in PureBasic? Tell the world about it.
Comtois
Addict
Posts: 1431 Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France
Post
by Comtois » Tue Jan 01, 2008 8:03 pm
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
electrochrisso
Addict
Posts: 989 Joined: Mon May 14, 2007 2:13 am
Location: Darling River
Post
by electrochrisso » Wed Jan 02, 2008 4:22 am
That was quick I only just started using 410.
Thanks you PB Guys.
PureBasic! Purely the best
J. Baker
Addict
Posts: 2181 Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:
Post
by J. Baker » Wed Jan 02, 2008 4:42 am
WOOHOO! Thanks!
oryaaaaa
Addict
Posts: 825 Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN
Post
by oryaaaaa » Thu Jan 03, 2008 7:03 am
Thankyou, PB teams !
and Happy new year !!
dige
Addict
Posts: 1391 Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:
Post
by dige » Thu Jan 03, 2008 1:37 pm
Great new stuff..thank you very much PB-Team!
And happy new year to all!!
traumatic
PureBasic Expert
Posts: 1661 Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:
Post
by traumatic » Thu Jan 03, 2008 8:00 pm
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
Posts: 538 Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:
Post
by Pantcho!! » Thu Jan 03, 2008 9:01 pm
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!
traumatic
PureBasic Expert
Posts: 1661 Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:
Post
by traumatic » Thu Jan 03, 2008 9:03 pm
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
Posts: 1391 Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:
Post
by dige » Thu Jan 03, 2008 10:22 pm
Berikco
Administrator
Posts: 1326 Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:
Post
by Berikco » Thu Jan 03, 2008 11:16 pm
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
Posts: 1661 Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:
Post
by traumatic » Thu Jan 03, 2008 11:17 pm
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
Posts: 1661 Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:
Post
by traumatic » Thu Jan 03, 2008 11:39 pm
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
Thank you!
Good programmers don't comment their code. It was hard to write, should be hard to read.
Dare
Addict
Posts: 1965 Joined: Mon May 29, 2006 1:01 am
Location: Outback
Post
by Dare » Thu Jan 03, 2008 11:40 pm
traumatic wrote: It's always good to have some fr34ks around
Dare2 cut down to size
Berikco
Administrator
Posts: 1326 Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:
Post
by Berikco » Thu Jan 03, 2008 11:45 pm
Smells like fish here
LuCiFeR[SD]
666
Posts: 1033 Joined: Mon Sep 01, 2003 2:33 pm
Post
by LuCiFeR[SD] » Thu Jan 03, 2008 11:49 pm
Berikco wrote: Smells like fish here
yes it does... how dare you compare the smell of that large trout to my wife LOL.