WAKE(3PYON)Pyon manual · the Pyon app (index.html)WAKE(3PYON)

NAME

wake — start the sound engine on the first touch

SYNOPSIS

wake()

DESCRIPTION

Browsers allow sound only after a person touches the page. wake() makes the Web Audio context on the first touch, or resumes it if the browser suspended it, so that the creatures' voices can play. It is called by every key, tab and control.

RETURN VALUE

Nothing.

SEE ALSO

tone(3pyon), press(3pyon)

SOURCE

src/pyon.html, line 330

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0