Skip to content

TSoundPlayer

Overview

Type TSoundPlayer

TSoundPlayer defines a simple interface that can be used to support polymorphism when defining options and other API interfaces that include sound generation.

@author John Blanco (PhET Interactive Simulations)

import type { TSoundPlayer } from 'scenerystack/tambo';
  • play: () => void
  • stop: () => void

Source Code

See the source for TSoundPlayer.ts in the tambo repository.