Quote Originally Posted by Pyrogine
Here is my Ogg Sample & Music Playback Engine

* it is based on a early version of PyroAudio
* used DirectSound
* full source code
* load/play/mix ogg samples
* play streaming ogg
* reserve channels
* thread updates audio in the background
* load up to 256 samples and can mix up to 32 channels
* Include a music player where you can play a directory full of ogg files
* Include a audio player demo
* add OggAudio.pas to your uses statement. The Audio object will be created/destroed automatically.

In this version globalfocus for sample is control by DirectSound which for most purposes works ok. Ideally you would want to manually control globalfocus yourself. I have this working for the streaming music. See how it's implemented to do the same for the samples.

OggAudio Engine
nice =D

ps: keeping synchronization with the http stream is like HELL