A lightweight GameMaker extension for playing audio files using WMPLib. Made it for Fatalny-Direct
- Initializes the audio system
- Returns
1on success - Called automatically
- Creates a new audio channel
- Returns channel ID
- Destroys all existing channels
- Called automatically when game close
- Sets audio file for the channel
path: Path to audio file
- Starts playback
- Pauses playback
- Stops playback
- Clears the current audio file from channel
- Destroys specific channel
- Sets channel volume (0-100 range)
- Sets playback position in seconds
- Returns path to current audio file
- Returns empty string if no file is set or channel doesn't exist
- Returns current volume (0-100 range)
- Returns
0if no file is set or channel doesn't exist
- Returns duration of current file in seconds
- Returns
0if no file is set or channel doesn't exist
- Returns current playback position in seconds
- Returns
0if no file is set or channel doesn't exist