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 IconPlay Audio
Stop Audio IconStop Audio
Stop All Audio IconStop All Audio
Pause Audio IconPause Audio
Pause All Audio IconPause All Audio
Resume Audio IconResume Audio
Resume All Audio IconResume All Audio
Set Audio Position IconSet Audio Position
Get Audio Length IconGet Audio Length
Set Audio Pitch IconSet Audio Pitch
Get Audio Pitch IconGet Audio Pitch
Set Audio Volume IconSet Audio Volume
Get Audio Volume IconGet Audio Volume
Set Master Volume IconSet Master Volume
Get Master Volume IconGet Master Volume
If Audio Is Playing IconIf Audio Is Playing
If Audio Is Paused IconIf Audio Is Paused
Set Audio Loop State
Get Audio Loop State
Set Audio Loop Start
Get Audio Loop Start
Set Audio Loop End
Get Audio Loop End