New version of the 'Audiere For Purebasic' pack

Developed or developing a new product in PureBasic? Tell the world about it.
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

New version of the 'Audiere For Purebasic' pack

Post by WolfgangS »

Hi !
Finally I finished the new version of the 'Audiere For Purbasic' pack.
It helps to play MP3, OGG, WAV and a few mod flavors for free and on the fly even in commercial projects.

MFG
WolfgangS

http://www.schliess.com/audiere
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Hello WolfgangS. I don't have any need for audio (yet) but this looks a great addition to PB. Thanks!
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

dmoc wrote:Hello WolfgangS. I don't have any need for audio (yet) but this looks a great addition to PB. Thanks!
LOL :)

A new bugfixed version is available. It removes the #AUDIERE_FF_AUTODETECT not found bug.

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
chris_b
Enthusiast
Enthusiast
Posts: 103
Joined: Sun Apr 27, 2003 1:54 am

Re: New version of the 'Audiere For Purebasic' pack

Post by chris_b »

Thanks WolfgangS - this is a good alternative to Fmod or Bass, and easy to understand and use thanks to your many example code. Exellent!
bcgreen
User
User
Posts: 33
Joined: Sun Nov 02, 2003 7:33 am
Location: Pullman, WA

Post by bcgreen »

Hmmm....I get lots of crackling in the audio that I don't get using any other mp3 player....
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

bcgreen wrote:Hmmm....I get lots of crackling in the audio that I don't get using any other mp3 player....
Which Device had you used ? Direct Sound or Windows Multimedia ?
I also get Crackling during Direct Sound in chosen :? I always thought it's an interrupt problem on my local computer here ...

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

bcgreen wrote:Hmmm....I get lots of crackling in the audio that I don't get using any other mp3 player....
The author of the library 'Chad Austin' confirmd a light crackling during DirectSound play, he is investigating this effect.

In the meantime you can use the winmm device ;)

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

your library is good, wolfgang, thanks.

but ogg player is really "on the fly" ?
When I play a 3mo ogg with it, the program take more than 40 mo in ram (the size of the equivalent uncompressed wav).
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Hmm, on the fly would imply, "streaming" no? I wouldnt want to use 400 MB of ram, if ogg is not on-the-fly.
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

I have the same music in 3 formats : ogg, mp3, and wav.

when I play ogg or wav, it take more than 40 mo in memory.
when I play the mp3 file, it only take program size+mp3 size (~8mo).
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Then none of them are on-the-fly. OTF means steaming, reading bits at a time from the hard drive in real time. So this library does not do on-the-fly playing.

Also, remember to pay the $,$$$ license fee if you going to use mp3s, hehe.. which is one of the reasons Im using OGG.
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

Shannara wrote:Hmm, on the fly would imply, "streaming" no? I wouldnt want to use 400 MB of ram, if ogg is not on-the-fly.
In my opinion *on the fly* means it play's instantly - and of course it takes quite a lot of memory. But such a library isn't the catalysator for a bad programming style. If you're need 400 MB of RAM only for sound, i'm very sure you are doing something wrong .. :lol:

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

Also, remember to pay the $,$$$ license fee if you going to use mp3s, hehe.. which is one of the reasons Im using OGG.
it's the reason why I want to use ogg files. The only problem is the memory taken in ram (not 400 MB, only 40, but it's a lot for a 3:30 music)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Nope, not really. I would only need 400 mb of RAM if the library did not support streaming. It would be no more then 1 MB if the library supported streaming.

This includes all sorts of different ambient and random background sound fx clips, and other effects on different channels, done in real time. Not to mention the regular background music on two different channels.

So no, nothing wrong, just was wondering if this library provided such a basic function :) But thanks for answering, I'll have to continue my search. I dont wanna touch FMOd unless I can help it. The author has some really messed up theories concerning his license.
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

coma wrote:I have the same music in 3 formats : ogg, mp3, and wav.

when I play ogg or wav, it take more than 40 mo in memory.
when I play the mp3 file, it only take program size+mp3 size (~8mo).
I made a few tests with mp3 and OGG files which sizes about 5 MB and i saw no significant difference before or after ...

Can somebody out there check this behavior as well ?

MFG
WolfgangS

ps. I wrote only the include file for Purebasic. That's all.
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
Post Reply