Author Topic: LOADSOUND with compressed Soundfiles  (Read 7656 times)

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: LOADSOUND with compressed Soundfiles
« Reply #15 on: 2010-Jun-17 »
Quote
Also MP3 is a very common format, more common than wav. Why is there no need for this and why does PLAYMUSIC support MP3s and PLAYSOUND does not?
It is not more common than WAV.  The MP3 format is a patented format.  It would cost Gernot a lot of money to license it for GLBasic.  Given the small community, it would probably knock up the price of GLBasic to around $500 or more.

Even then, GLB users still could not use the MP3 support as Gernot's license would only cover him.  For game developers the license goes by distributed copies and not sold copies so this affects even freeware developers, the license for having MP3s with your games is $2500 per title.  Since the vast majority of GLB users can't legally use MP3s with their games due to being unable to afford the license, it is rather pointless to implement the feature even if Gernot was in a position to be able to afford it.

Offline kaotiklabs

  • Dr. Type
  • ****
  • Posts: 313
  • Spain is diferent
    • View Profile
Re: LOADSOUND with compressed Soundfiles
« Reply #16 on: 2010-Jun-17 »

So, as far as I can undestand anybody of you are using MP3s in your iphone games??
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: LOADSOUND with compressed Soundfiles
« Reply #17 on: 2010-Jun-18 »
@Kuron:

Oh really?
Why does PLAYMUSIC support MP3's then? ::)
~ Cave Story rules! ~

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: LOADSOUND with compressed Soundfiles
« Reply #18 on: 2010-Jun-20 »
@Kuron:

Oh really?
Why does PLAYMUSIC support MP3's then? ::)
Because the API that Gernot uses supports it ;)  Still that API's license doesn't cover you.  If you use MP3s in your game, you have to pay the $2,500 license fee.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10651
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: LOADSOUND with compressed Soundfiles
« Reply #19 on: 2010-Jun-22 »
* Kitty Hello converts al his music to ... OGG now. Blimey, I hope noone finds out...

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: LOADSOUND with compressed Soundfiles
« Reply #20 on: 2010-Jun-22 »
* Kitty Hello converts al his music to ... OGG now. Blimey, I hope noone finds out...
That is about the only thing you can do with MP3s and not have to pay license fees for ;) 

I got a C&D from Thomson a couple of years ago because I put a couple of free MP3s on my music site where I was selling my music CDs.   :(

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: LOADSOUND with compressed Soundfiles
« Reply #21 on: 2010-Jun-29 »
I would be fine with using OGGs for PLAYMUSIC/PLAYSOUND too.
I have googled about the OGG file format too, but I can't find anything aside from C/C++ Source Codes >_>;
And I don't know any C/C++ :/

All I ask for is compression, a own file format would be fine too :/
« Last Edit: 2010-Jun-29 by S. P. Gardebiter »
~ Cave Story rules! ~

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10651
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: LOADSOUND with compressed Soundfiles
« Reply #22 on: 2010-Jun-30 »
shoeboxxed wav files? I would not be able to stream them, but they are about the size of a lossless ogg container.

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: LOADSOUND with compressed Soundfiles
« Reply #23 on: 2010-Jun-30 »
shoeboxxed wav files? I would not be able to stream them, but they are about the size of a lossless ogg container.

You sure? :/
My wave file: 2,84 MB
My wave file in a showbox: 2,37 MB
My wave file as a ogg: 255 KB
~ Cave Story rules! ~

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10651
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: LOADSOUND with compressed Soundfiles
« Reply #24 on: 2010-Jun-30 »
that's not lossless then. Well, suggest what I should do now. I don't see a way to play corss platform OGG files. Do Linux and Mac platforms already support OGG with PLAYMUSIC? (can someone test, please) In that case I'd only have to cover Win32 and WinCE. The first of them might be doable, but WinCE is definitely bad.

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: LOADSOUND with compressed Soundfiles
« Reply #25 on: 2010-Jun-30 »
that's not lossless then. Well, suggest what I should do now. I don't see a way to play corss platform OGG files. Do Linux and Mac platforms already support OGG with PLAYMUSIC? (can someone test, please) In that case I'd only have to cover Win32 and WinCE. The first of them might be doable, but WinCE is definitely bad.

I'm not sure. If uncompressing at game start is no solution, then I don't know o: Perhaps there is a LPGL OGG Vobis libary. A long time Linux user told me, that Linux does support OGG Vobis (as a codec), while a native Windows version does not. (Not sure about Mac though) I can't play OGG's with PLAYMUSIC, so it seems that umcompressing is the only solution D:
Or a own file format. But I don't know anything about compression :/
~ Cave Story rules! ~