Page 5 of 7
Posted: Tue Jan 01, 2008 8:03 pm
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
Posted: Wed Jan 02, 2008 4:22 am
by electrochrisso
That was quick I only just started using 410.
Thanks you PB Guys.

Posted: Wed Jan 02, 2008 4:42 am
by J. Baker
WOOHOO! Thanks!

Posted: Thu Jan 03, 2008 7:03 am
by oryaaaaa
Thankyou, PB teams !
and Happy new year !!

Posted: Thu Jan 03, 2008 1:37 pm
by dige
Great new stuff..thank you very much PB-Team!
And happy new year to all!!
Posted: Thu Jan 03, 2008 8:00 pm
by traumatic
Code: Select all
- Added: Streaming for OGG and FLAC
- Added: Streaming support for CatchSound()
Does anyone know how this works?
Posted: Thu Jan 03, 2008 9:01 pm
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!

Posted: Thu Jan 03, 2008 9:03 pm
by traumatic
C'mon Pantcho you old schnitzel-lover!
I WAS there and found nothing but the usual idle time!

Posted: Thu Jan 03, 2008 10:22 pm
by dige
Posted: Thu Jan 03, 2008 11:16 pm
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....
Posted: Thu Jan 03, 2008 11:17 pm
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?

Posted: Thu Jan 03, 2008 11:39 pm
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

Thank you!
Posted: Thu Jan 03, 2008 11:40 pm
by Dare
traumatic wrote:It's always good to have some fr34ks around

Posted: Thu Jan 03, 2008 11:45 pm
by Berikco
Smells like fish here

Posted: Thu Jan 03, 2008 11:49 pm
by LuCiFeR[SD]
Berikco wrote:Smells like fish here

yes it does... how dare you compare the smell of that large trout to my wife LOL.