I've just released some code that makes it easy to keep track of audio in Blitz3D and BlitzPlus.
Imphenzia Audio System is an include library that can be used to play music and sound effects. The audio system has built in features for crossfading, volume handling, pause/resume, playlist management, channel management and priority etc.
Music Features
* Load raw/Mod/s3m/xm/it/Mid/rmi/wav/mp2/mp3/ogg/wma/asf files
* Simple creation of playlists
* Load mp3u lists into playlist
* Clear / Remove songs from playlist
* Play next song with option crossfade
* Play previous song with optional crossfade
* Pause / Resume music
* Stop music (with optional fadeout)
* Set / Get music volume
* Get current song name
* Randomize playlist
* Playlist repeat mode
* Autoplay next song
Sound Effect Features
* Load raw/mp3/ogg/wav sound effects
* Group sound effects (easy to unload for game levelts etc.)
* Play sound effects with individual volume, priority, panning, fade in, duration, fade out
* Set / Get global sound effect volume
* Set / Get maximum number of simultaneous sound effect channels
* Pause / Resume sound effect system
For a full list of commands and download source code, please visit http://soundtrack.imphenzia.com/audiosystem.php
Hope you find use of the library and please notify me of any bugs etc.
|