Renders a module tracker object of class openmpt and plays it instantaneously.
play(mod, sample_rate = 44100L, progress = "vu", duration = NA_real_, ...)A tracker module object of class openmpt.
Output sample rate when playing the module.
Progress printed to console while playing. Should be one of
"vu" (indicative volume meter), "time" (shows timer) or "none" (don't show progress).
If your audio is stuttering you might want to set this to "none" to save processing speed.
Duration in seconds. Play routine will not last longer than this duration.
if set to NA_real_ it is ignored and the module keeps rendering conform the specified control().
Ignored
Returns NULL invisibly.
if (interactive() && has_audio_device()) {
mod <- demo_mod()
play(mod)
}