A5.5+ natively supports playing OGG files.
Download 3D GameStudio OggPlayer v1.2 (Multi Channel) *Compiled for A5.5+*
Download 3D GameStudio OggPlayer v1.2 (Multi Channel) *Compiled for A5.24*
Download 3D GameStudio OggPlayer v1.0 (Single Channel) *Compiled for A5.24*
Use:
Free for all GameStudio projects without restrictions.
Issues:
Playing multiple OGG files at once can really eat up your CPU.
The SetVolume() function is the volume of the global WaveOut device.
Each OGG file does not have it's own volume.
GetVolume() will fill leftvolume and rightvolume with "0" if the
player isn't playing.
Disclaimer:
If it blows up your machine it's not our fault.
Versions:
7/30/2002 -- v1.2 -- Added GetVolume() & SetVolume()
7/11/2002 -- v1.1 -- Released. Added multiple OGG play channels.
7/10/2002 -- v1.0 -- Released.
Functions:
// the path of filename is the current path of the A5 EXE
// you can use a subpath in the filename like this "music\myfile.ogg"
// id is the number ofthe OggPlayer you wish to use.
// Start with OggPlayer_Create(0); and incriment up from there.
// returns 1 if error else returns 0.
dllfunction OggPlayer_Create(id);
// returns 1 if already playing, returns 2 if error opening OGG,
// returns 3 if other error, else returns 0.
// the path of filename is the current path of the A5 EXE
// you can use a subpath in the filename like this "music\myfile.ogg"
dllfunction OggPlayer_Open(id, filename);
// returns 1 if error else returns 0.
dllfunction OggPlayer_Play(id);
// fills leftvolume and rightvolume (STRING) with the volume value
// returns 1 if error else returns 0.
dllfunction OggPlayer_GetVolume(id,leftvolume,rightvolume);
// leftvolume/rightvolume is 0 through 65535 (FIXED)
// returns 1 if error else returns 0.
dllfunction OggPlayer_SetVolume(id,leftvolume,rightvolume);
// returns 1 if error else returns 0.
dllfunction OggPlayer_Restart(id);
// filles fileinfo with current file info. returns 1 if error else returns 0.
// make sure your string is long enough to contain the data
dllfunction OggPlayer_Info(id,fileinfo);
// returns length of current file
dllfunction OggPlayer_PlayLength(id);
// returns position of current playing file
dllfunction OggPlayer_Position(id);
// returns 1 if error else returns 0.
dllfunction OggPlayer_Pause(id);
// returns 1 if error else returns 0.
dllfunction OggPlayer_Stop(id);
// returns 1 if error else returns 0.
dllfunction OggPlayer_Free(id);
|