Gamepedia Help Wiki
Advertisement

AudioButton is an extension that creates a one-button play/pause toggle for an uploaded audio file. It is a drop-in replacement for SoundManager2Button.

Known issues

Many extensions allow you to put the opening extension tag on its own line, like this:

<sm2>
Rain-01.mp3
</sm2>

This extension does NOT. You have to have all of the content in one line, like this:

<sm2>Rain-01.mp3</sm2>

As a consequence, you cannot use frame:extensionTag() in Lua. A very easy workaround is to use the following syntax instead:

frame:callParserFunction{
    name = '#tag:sm2',
    args = { file }
}

External links


Advertisement