How to play Ogg Vorbis Audio with GLBasic

Previous topic - Next topic

Synthetic

I was originally going to utilize the inline C feature of GLBasic to do this but I found a work around for now:

First you need to install the tobias DirectShow ogg filter. You can download this here -->

OggDS0995.exe

Next, you need to make an addition to your MCI Extentions.
Open up regedit and go to the following location -->
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MCI Extensions
Now add a new String Value entry. For the name put in ogg. Type will already be set. Next, double click your new ogg entry and in the Data text field enter MPEGVideo. Click ok.

Everything is complete and you can now load and play ogg encoded audio files with the PLAYMUSIC command.

If you don't feel like venturing into your registry, I have provided a file for download that you can import into your registry to automaticly do the above for you. -->

ogg.reg - Right click and save as / save link as etc. depending on your browser.

Once saved, just double click it and it will bring up a window that says "Are you sure you want to add the information in" along with the files location. Click yes and it's done.

Another thing to note is that the tobias directshow filter can be included with your program and only requires you to put the disclaimer and copyright info in the documentation for your program. When you install the filter, it gives the specific information.

BTW, this is for Windows. The download link is now working again as the river's past page was removed.
"Impossible is a word people use to make themselves feel better when they quit."

My AMXMODX plugins for Day of Defeat 1.3 can be found here.

Kitty Hello

Thank you for putting this up. Great article.