Audio Action Library

Audio Action LibraryGameMaker has a complete audio engine that is based on the *.ogg, *.mp3 and *.wav sound formats. Sounds of these types added to the IDE can then be used in your game using the basic audio actions shown below. For things more complex than basic sound effects or playing a single piece of music you can refer to the advanced audio functions dedicated to streaming audio, positioning audio - to give 3D sound - and grouping audio.

IMPORTANT! When using audio on the HTML5 target, you should be aware that not all browsers support Web Audio and so may not play any sound for your project when run. You can get a general idea of Web Audio support from the following link: Can I Use Web Audio?.

The Audio library has the following actions:

Play Audio Icon Play Audio
Stop Audio Icon Stop Audio
Stop All Audio Icon Stop All Audio
Pause Audio Icon Pause Audio
Pause All Audio Icon Pause All Audio
Resume Audio Icon Resume Audio
Resume All Audio Icon Resume All Audio
Set Audio Position Icon Set Audio Position
Get Audio Length Icon Get Audio Length
Set Audio Pitch Icon Set Audio Pitch
Get Audio Pitch Icon Get Audio Pitch
Set Audio Volume Icon Set Audio Volume
Get Audio Volume Icon Get Audio Volume
Set Master Volume Icon Set Master Volume
Get Master Volume Icon Get Master Volume
If Audio Is Playing Icon If Audio Is Playing
If Audio Is Paused Icon If Audio Is Paused