ov:Lib v0.27 - Stream OggVorbis in PureBasic (3.94 / 4.00)

Developed or developing a new product in PureBasic? Tell the world about it.
banban73
User
User
Posts: 21
Joined: Sun Jul 18, 2004 12:03 pm
Location: Bergerac - France

OvLib issue with PB 4.00 final

Post by banban73 »

Hello
I just move to PB 4.00 from 3.94 and OvLib (both 0.23 and 0.26) makes the PB 4.00 final compiler fail with Polink error like "POLINK: error: Unresolved External Symbol "_ftlused"" (roachofdeath seemed to have same problem with PB 3.92).
I wonder if you are aware for this issue and if there is a simple way to make it work ?
By the way, your lib is really cool ! Thank You for sharing it !
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: OvLib issue with PB 4.00 final

Post by traumatic »

Here's a quick workaround:

Code: Select all

!public _fltused
!_fltused dw 0
I can't test right now but this should help.

The lib has to be updated anyway as all functions that are supposed to
return strings are currently broken... :?

Sorry for any inconvenience.
Good programmers don't comment their code. It was hard to write, should be hard to read.
banban73
User
User
Posts: 21
Joined: Sun Jul 18, 2004 12:03 pm
Location: Bergerac - France

Post by banban73 »

Thanks Traumatic for your quick answer.
I will try the trick this evening and report the results.

Regards
banban73
User
User
Posts: 21
Joined: Sun Jul 18, 2004 12:03 pm
Location: Bergerac - France

Still not working

Post by banban73 »

I inserted the workaround code in the beginnig of my code and got the same result.
To be more precise than yesterday the errors are, for the relevant ovlib version:

ovLib 0.23 : One POLINK Error : unresolved external symbol '_PB_Window_Current'

ovlib 0.26 : Two POLINK Errors : unresolved external symbol '_fltused' and same for '_allshr'


Regards
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: Still not working

Post by traumatic »

banban73 wrote:ovlib 0.26 : Two POLINK Errors : unresolved external symbol '_fltused' and same for '_allshr'
ha yes...

Code: Select all

!public _fltused
!public _allshr
!_fltused dw 0
!_allshr dw 0
or

Code: Select all

Import "msvcrt.lib"
EndImport
alternatively.

If I don't manage to get the update done in the near future, I think
I'll release the source in the hope that someone else will maintain it.
Sorry.
Good programmers don't comment their code. It was hard to write, should be hard to read.
banban73
User
User
Posts: 21
Joined: Sun Jul 18, 2004 12:03 pm
Location: Bergerac - France

Great ! It works !

Post by banban73 »

The msvcrt.lib import method is the right one (on my computer at least). It works perfectly.

Thank you very much Traumatic !

Regards
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Re: Still not working

Post by Dare2 »

traumatic wrote:If I don't manage to get the update done in the near future, I think I'll release the source in the hope that someone else will maintain it.
Or so that we can learn from your code. :D
@}--`--,-- A rose by any other name ..
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: Still not working

Post by traumatic »

Dare2 wrote:Or so that we can learn from your code. :D
Hehe, you'd be disappointed for sure - no magic inside.
Good programmers don't comment their code. It was hard to write, should be hard to read.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Re: Still not working

Post by Dare2 »

traumatic wrote:Hehe, you'd be disappointed for sure - no magic inside.
I don't believe that.

Anyhow, it's probably in C++ which is a plus - I could just look at it and go "wow", even if it was crap - what would I know. :)
@}--`--,-- A rose by any other name ..
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: Still not working

Post by traumatic »

Ok, I'd probably be better off _not_ releasing the source then. Gotta keep the myth going! :P
Good programmers don't comment their code. It was hard to write, should be hard to read.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Veeery very nice lib. And extremely usefull. Could this be used for VOIP apps ?
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Inf0Byt3 wrote:Veeery very nice lib. And extremely usefull. Could this be used for VOIP apps ?
Thanks.

VOIP? Don't know how this library could be of any use in this respect
as all it does is load and play (stream) .ogg files... (?)
Good programmers don't comment their code. It was hard to write, should be hard to read.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Yes, I see... A RecordOgg procedure would be cool too :)
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Balatro
User
User
Posts: 15
Joined: Sun Oct 05, 2003 2:27 pm

Post by Balatro »

Can this be used with oggs packed with PureBasic's packer commands, in a way similar to:

Code: Select all

CatchSound(#Sound, NextPackFile())
... and if so, how? Tried to play around with it, but couldn't get it to work.

Anyway, thanks to traumatic for a very good lib!

~ B
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 386
Joined: Sat Feb 25, 2006 4:23 pm

Post by yoxola »

I can't get it work, unresolved symbols on ovLib itself, will it get updated?
Post Reply