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.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Update! :)

Changes in 0.24
- removed compatibility issues with OpenScreen()
- added FFT functions

Changes in 0.25
- fixed memoryleaks in FFT functions


Get it here:
http://files.connection-refused.org/ovL ... b-0.26.zip


Here's a sneak preview of ov:Lib's new FFT capabilities:

Image
Last edited by traumatic on Fri Mar 25, 2005 12:27 pm, edited 1 time in total.
Good programmers don't comment their code. It was hard to write, should be hard to read.
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

Great library, nice music, and well done help file! (without the classic silly yellow background) :D
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

@traumatic:

Your lib rocks ... as well as your tune ;-) :!: :!: :!: n1 :!:
regards,
benny!
-
pe0ple ar3 str4nge!!!
chris_b
Enthusiast
Enthusiast
Posts: 103
Joined: Sun Apr 27, 2003 1:54 am

Post by chris_b »

this looks like a cool library.

But, can it be used simultaneously with PureBasic's InitSound() and PlaySound() functions etc. or will there be problems doing this?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Thank you for your nice comments.
I knew I had to do some visuals in order to get some response! :lol:
chris_b wrote:But, can it be used simultaneously with PureBasic's InitSound() and PlaySound() functions etc. or will there be problems doing this?
I tested this and didn't encounter any problems so far.
Also I see no reason why the libraries should interfere.

There's just one thing to keep in mind:
[ov:Lib] supports different output devices while PB's soundlibrary does not.
Using another device than the primary may lead to unexpected results when
used simultaneously with PlaySound() but most likely you will just have 4
channel audio ;)
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 »

New version available...

Changes in 0.26
  • - fixed small issue with ovOpenMem() (Thanks to Epyx for reporting!)
    - added optional loop-parameter to ovPlay()
Library only release:
http://files.connection-refused.org/ovL ... ibOnly.zip

Complete package (example code, example music, helpfile):
http://files.connection-refused.org/ovL ... b-0.26.zip
Good programmers don't comment their code. It was hard to write, should be hard to read.
roachofdeath
User
User
Posts: 78
Joined: Sun Apr 24, 2005 3:22 am

Post by roachofdeath »

i get error when i try to compile:
"POLINK: error: Unresolved External Symbol "_ftlused""
and more like that, 4 in total.

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

Post by traumatic »

What version of PureBasic are you using?
The library should work with v3.93 (and above).
Good programmers don't comment their code. It was hard to write, should be hard to read.
roachofdeath
User
User
Posts: 78
Joined: Sun Apr 24, 2005 3:22 am

Post by roachofdeath »

i use 3.92 for a few reasons, mainly being libs that dont work in 3.93 that i need to use...

can i have a previous version? that is if you still have it...
my e-mail is roach6390@gmail.com
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

This version should work with 3.92:
http://files.connection-refused.org/ovL ... ibOnly.zip

(NOTE: this version contains a bug in ovOpenMem() and lacks the optional loop parameter)



Please understand I see no reason in supporting older versions of PureBasic. :)
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 »

roachofdeath, did the old library work for you?
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

(EDITED)

Any chance to of a flac streamer too?
That way both ogg and flac can be streamed.

Naturaly I'm hoping that the PB 4 team will add a official ogg streaming
and flac streaming though :)

PS! is ov:Lib updated to latestogg vorbis version?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Rescator wrote:PS! is ov:Lib updated to latestogg vorbis version?
Good point. Is there anything I should be aware of / something that doesn't work?
(Actually, ov:Lib is using a customized library in order to reduce size.)
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

traumatic wrote:Is there anything I should be aware of / something that doesn't work?
Yeah actualy, if you try to play a file and it's not a ogg file, the lib crashes,
instead of returning false when trying to open the file.
You can easily reproduce this with the demo program/code too.

And yeah, I suspected you had a slightly modified variation,
mostly based around vorbisfile lib I assume?
Maybe make use of that Test function if your not allready doing that when trying to open a file.

Other than that I think it's great, hardly any cpu usage at all,
the only thing I'm missing I guess is the ability to play more than one ogg file at the same time.
Imagine a game where you got a music piece (ogg stream) and
then you wish to change from the first music to the second without stopping any music.
(by starting a 2nd stream, and when it has started, fade out the other one)
Sort of cross fading if you know what I mean.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

You're right about testing for a valid file, it's not checked at all right now... :roll:
Guess I'll have to add this for a next version.

About multiple streams, well, this has been requested quite some times now.
I never wanted ov:Lib to be like this but maybe it's time to re-think the idea.

Thank you for your response! :)
Good programmers don't comment their code. It was hard to write, should be hard to read.
Post Reply