GLBasic forum

Main forum => GLBasic - en => Topic started by: NRasool on 2010-Mar-26

Title: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-26
Hi there

I'm just evaluting GL Basic, and would prob get the Premium pack, my background is in Blitz3d and I work full time as a Tech Support and Develop Support tools in C#. My own plead to the developers would be, please could you give us native support for OGG files. If we develop an application, I really don't wish for other users to install additional installer, I know you could use the -q (quiet) command in the installer but still.

Could the developer please add ogg support with static library

Other than that I'm loving it :-D
Title: Re: A plead to the developers for native support on OGG files
Post by: Ian Price on 2010-Mar-26
.OGG is supported, but doesn't always work on some systems. It works on my desktop, but not my two laptops and it works on Wiz and GP2X.
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-26
Hi Ian,

Thanks, I think I have seen you around Playbasic forums right? Ahh my desktop PC does not play ogg file, so I looked at the help file, and it mentions that I need an ogg codec, hence my request. I know that Blitz3d will play ogg file straight off the bat without anything extra, so just wondered if GLBasic developers could just add in the library.

Would you know why it is not playing for some soundcard, especially since other languages play ogg file without any problem
Title: Re: A plead to the developers for native support on OGG files
Post by: Ian Price on 2010-Mar-26
Yep, I used to code in PlayBASIC - I haven't been on the forums for a couple of years now though. As for .OGG codecs, I've tried loads and none have worked successfully with my GLBasic games on my laptops :(

It's really odd, as ALL other programs can play .OGGs fine on all my machines.
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-26
Quote from: NRasool on 2010-Mar-26I know that Blitz3d will play ogg file straight off the bat without anything extra,
This is because the runtime for B3D includes the static lib for fmod.
Title: Re: A plead to the developers for native support on OGG files
Post by: MrTAToad on 2010-Mar-26
You could always use either FMOD or BASS
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-26
Hey MrTAToad, You sound familar?, Blitz3d, Playbasic or Darkbasic

Anyway yup, I found some searches on BASS which I have used in the past, so will work on setting this up in glbasic

Many thanks for your response, I believe you wrote a bass wrapper :-)
Title: Re: A plead to the developers for native support on OGG files
Post by: MrTAToad on 2010-Mar-26
Used to use DBPro - and did write a BASS interface.  Not sure whether its still on my site though.
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-27
Quote from: Ian Price on 2010-Mar-26
Yep, I used to code in PlayBASIC - I haven't been on the forums for a couple of years now though. As for .OGG codecs, I've tried loads and none have worked successfully with my GLBasic games on my laptops :(

It's really odd, as ALL other programs can play .OGGs fine on all my machines.
What OS are you running on the problem systems?
Title: Re: A plead to the developers for native support on OGG files
Post by: Ian Price on 2010-Mar-27
Quote from: Kuron on 2010-Mar-27
Quote from: Ian Price on 2010-Mar-26
Yep, I used to code in PlayBASIC - I haven't been on the forums for a couple of years now though. As for .OGG codecs, I've tried loads and none have worked successfully with my GLBasic games on my laptops :(

It's really odd, as ALL other programs can play .OGGs fine on all my machines.
What OS are you running on the problem systems?

My Desktop is Windows Xp as is one laptop - the other is Windows7. It's not OS related.
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-27
My desktop is a Windows XP sp3, haven't tried on my vista machine yet
Title: Re: A plead to the developers for native support on OGG files
Post by: trucidare on 2010-Mar-27
OGG support on windows depence on codecs.
download ogg codec and you get ogg support on your machine. same with movies for playmovie
Title: Re: A plead to the developers for native support on OGG files
Post by: Ian Price on 2010-Mar-27
QuoteOGG support on windows depence on codecs.
download ogg codec and you get ogg support on your machine

Sorry, but this isn't entirely accurate. I've downloaded quite a few codecs for .OGG for my (now dead) XP laptop and none allowed .OGG files to play via GLBasic. It obviously requires a certain codec that I haven't yet obtained.
Title: Re: A plead to the developers for native support on OGG files
Post by: trucidare on 2010-Mar-27
if you can play ogg in windows media player you can play it in glbasic - thats the last status from kittie - if not hmm a bug?
Title: Re: A plead to the developers for native support on OGG files
Post by: Ian Price on 2010-Mar-27
Windows media Player? I wouldn't want to dirty my hands! :P
Title: Re: A plead to the developers for native support on OGG files
Post by: trucidare on 2010-Mar-27
this shows thats the codec is correctly installed and works ;)
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-27
Hi trucidare

I understand what you are saying and yes the help file does mention this, Maybe it more of a wishlist item from me, but I would like the ability to not do this. Blitz3d binds with fmod, so you don't need to have any codec within that programming language and I just wanted the same for GLBasic. Maybe I will use BASS and try to bind it with inline C

Kind Regards
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-28
Does this issue exist in Linux?

Does this issue happen on desktops?

On the problem systems are the motherboard drivers and sound card drivers updated to the latest versions?

Budget soundchips do not always have hardware buffers to properly support DirectSound.  Add to this that Vista and 7 did away with the hardware buffers support for DirectSound and the emulation used can be problematic on budget soundchips.

That said, my mini sound engine uses DX and it handles OGG only (no codecs need to be installed) and works fine on XP & 7 and even on my Eee.

I am guessing the problem is in GLBasic's implementation.  Sad in a way as OGG is your only choice since you can't use MP3s in games due to the licensing issues.

The only codecs I would recommend trying for this issue is: K-Lite Mega Codec (http://www.free-codecs.com/download/k_lite_Mega_codec_pack.htm). And install everything.  With the way GLB is doing things, you might also try making Windows Media Player the default player for OGG files.  Still... Not acceptable solutions for the EUs of your games.


Title: Re: A plead to the developers for native support on OGG files
Post by: MrTAToad on 2010-Mar-28
I've never tried it on Linux, but on Mac's OGG is the only music format it plays.

I cant get OGG's to play on my Windows 7 machine (and I do have the OGG codec installed).
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-28
On Vista and 7 it is easy to chalk it up to the changes made to DirectSound, but if that was the sole cause, it should not be happening on XP.

Title: Re: A plead to the developers for native support on OGG files
Post by: trucidare on 2010-Mar-28
you can play all standard formats in mac os like aif and the other sound effect and music formats
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-28
Hey Kurgan

QuoteI am guessing the problem is in GLBasic's implementation.  Sad in a way as OGG is your only choice since you can't use MP3s in games due to the licensing issues.
Exactly that is the reason I want to use ogg implementation, due to licencing. I have used klite codec, but I wouldn't have though end users would be happy for this. It may be just to use fmod and bass really, but kitty if you are reading, at one point, please could you research this area.

Many thanks
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-29
QuoteIt may be just to use fmod and bass really,
If there is a need, I could port my OGG audio engine over for use with GLBasic.
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-29
Hey Kurgan
QuoteIf there is a need, I could port my OGG audio engine over for use with GLBasic.

If you could, I would def appreciated it, as yet I'm still evaluating the product, but the only thing that stopped me was this, if you could do it, so it is similar to blitz3d, ie not having the user end install a codec, I would be very much appreciated it

Kind Regards
Title: Re: A plead to the developers for native support on OGG files
Post by: Ian Price on 2010-Mar-29
Yes please Kuron :)

It might be worth offering/licensing it to Gernot, so he can include it a part of GLBasic?
Title: Re: A plead to the developers for native support on OGG files
Post by: MrTAToad on 2010-Mar-29
And of course make sure it works on Windows, Mac, Linux, iPhone etc :)
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-29
Quoteit, so it is similar to blitz3d, ie not having the user end install a codec
It would be a very small DLL, and it would have the OGG decoding built into the DLL.

QuoteIt might be worth offering/licensing it to Gernot, so he can include it a part of GLBasic?
Good idea, but it won't happen.  The last time I did that (about five years ago), I got burned really bad and ended up taking all of my software offline.

QuoteAnd of course make sure it works on Windows, Mac, Linux, iPhone etc
Windows only ;)
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Mar-29
Hey Kuron

QuoteIt would be a very small DLL, and it would have the OGG decoding built into the DLL.
Yup that is cool, that is similar to BASS which is a small .dll which you will distribute alongside your application, if you could provide this, we would be grateful :-)
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-29
I can promise you my DLL will be much smaller than BASS  ;)
Title: Re: A plead to the developers for native support on OGG files
Post by: MrTAToad on 2010-Mar-29
QuoteWindows only
Awww  :'(
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-30
Quote from: MrTAToad on 2010-Mar-29Awww  :'(
Are you willing to buy me a Mac?  =D  I do not have a Mac or iPhone, so I can't develop for those.  With the way GLBasic does things there should be no issues with OGGs on Linux. 
Title: Re: A plead to the developers for native support on OGG files
Post by: MrTAToad on 2010-Mar-30
Never tried OGG with Linux - will have to see how it goes :)
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Mar-31
see post in OT
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Apr-01
There is a static library out there for MingW, I wonder if we could adapt this for GLbasic using Inline C, so in theory this would work across platform, see the OT thread for more
Title: Re: A plead to the developers for native support on OGG files
Post by: Kitty Hello on 2010-Apr-06
You can use external static libs with the -lnk line in the platform options. Just put the libXXX.a file in the project's directory and type int that edit box: "-lXXX" -> Now you can call the function with IMPORT as if it was a built-in function.
Title: Re: A plead to the developers for native support on OGG files
Post by: NRasool on 2010-Apr-06
Hey Kitty,

Cheers for that, I will try this on the demo version
Title: Re: A plead to the developers for native support on OGG files
Post by: Kuron on 2010-Apr-06
Thank you Gernot!