plugin

Fun with Sound

Jun
17

Included with the Open GL package for Delphi [http://www.glscene.org GLScene] are various extras such as the ODE package as well as [http://www.un4seen.com/bass.html the BASS sound library]. Recently I took a closer look at the library to see what it can do. I have to say that it is pretty amazing.

The library is a relative small single (100K) DLL with header or unit files for various languages including VB, C, and Delphi. There also extension libraries that allow for specific encoding and special effects. It support playing streaming radio (Shoutcast) in the background as well as many audio files both wave based and music files such as MIDI and MOD music files. Check out the site link above for more details.

There are a number of sample programs, and the one showing how to play a Shoutcast feed was most interesting. My goal was to create an HTTP plugin that would be able to play that stations on the main simulation server box, (so that the music would come out of the main speakers), but allow control from one of the remote machines. Remarkably it worked on the first try, a rare occurance in web server modules, usually due to executing in a separate thread.

Posted By Charlie read more
Subscribe to RSS - plugin