OGG sound problem!!

Just starting out? Need help? Post your questions and find answers here.
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

OGG sound problem!!

Post by Cor »

If I want to catchsound or play a OGG sound which is about 1,7 MB in size the program doesn't react.

I did the test with the SoundPlugin demo which comes with PureBasic.

Small OGG sound files are not a problem.
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

It may take a while to decode a 1.7 MB OGG file as PB decodes it all in one go... Or it can be something else...
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Post by Cor »

After loading a relative big OGG sound file 1162 KB (small song)

It took more than 3 minutes to decode

That was the problem.

So I guess that only very small sound file are useable.

So this sound format is unuseable :cry:

Win98se
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

Cor wrote:After loading a relative big OGG sound file 1162 KB (small song)

It took more than 3 minutes to decode

That was the problem.
Decoding isn´t "on the fly"
Cor wrote: So I guess that only very small sound file are useable.
So this sound format is unuseable :cry:
:cry:


MFG
:cry:WolfgangS
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It's not because the file size is relatively low, than it will load quickly. OGG and MP3 are heavily encoded and need a lot of time to be decoded complety (and need a lot of memory). The OGG catch sound format was intented for small sounds, like sound effects which takes a lot of disk space if you want a nice quality. CatchSound will never support streaming BTW.
THCM
Enthusiast
Enthusiast
Posts: 276
Joined: Fri Apr 25, 2003 5:06 pm
Location: Gummersbach - Germany
Contact:

Post by THCM »

Hi Fred!

Never is an ugly word. To have Ogg streaming support we have to buy Fmod? Or is someone here capable of writing a small library? The Ogg sources are free.

Does anybody know a good and free solution to play music in Purebasic? With mxmplay I can only use one song (perhaps more using play-position). Midas, Fmod and Bass are not free for use in commercial productions.

The Playsound command is okay for simple soundeffects, but for playing music and other things it's not a mature solution.

Yours
The Human Code Machine / Masters' Design Group
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Post by Danilo »

> Midas, Fmod and Bass are not free for use in commercial productions.

If you make a commercial application, you make money with it.
So hey... whats the problem?

FMOD is $100 only for a shareware program you sell and it is
free if you write software that nobody wants to pay for (freeware).

I really dont understand you guys... wanna write commercial
software but not spend some bucks.
You will never ever make real big bucks if you dont invest before...

And dont forget: You can use it for free for all your software
you dont sell.
Games, sound programs, everything... free for freeware.
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I've said never for CatchSound(), but I will add streaming for a regular PlaySound(). I will see.
THCM
Enthusiast
Enthusiast
Posts: 276
Joined: Fri Apr 25, 2003 5:06 pm
Location: Gummersbach - Germany
Contact:

Post by THCM »

I only have a problem paying for something, when there's no need for it! Purebasic functions are nearly there, so why buy anything else? I think it's easier to live with those functions on board and not pasting and patching lots of things together!

Here's a small list of Software I own the original of:

Photoshop 7.0, Macromedia Studio MX, Newtek Lightwave 7.0, Purebasic, Darkbasic Pro and nonPro, Blitzbasic 2D and 3D, Veritas BackupExec, some MS Windows and Office originals..... and many, many more not listed!!!

As you can see 100 Bucks is no problem for me.... but who said, that I want to releases my game as shareware?

Yours
The Human Code Machine / Masters' Design Group
Post Reply