spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Multimedia functions

IsMusicVoxAvailable

IsMusicVoxAvailable()
Returns whether the MUSIC.VOX file is being used by the game. This could be useful if you have an optional MP3 download pack, and you want to know whether the player has it or not.

Returns 1 if the MP3/OGG music files are available, 0 if not.

NOTE: This function ONLY deals with the MUSIC.VOX file. If you have bundled MP3 files separately in the game directory, they will still be played by the game, but this function will not return 1 if they are there.

Example:

if (IsMusicVoxAvailable()==0)
    Display ("You don't have the music pack"); 
will display a message if the music pack is not available.

See Also: IsSpeechVoxAvailable


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.