!7 import static x30_pkg.x30_util.VF1; sclass PlayWAV > DynPrintLog { transient short[] audio; transient VF1 source; void start { // download & load MP3 (TODO: optimize) audio = decodeWAVToStereoSamples(mp3ToTempWAV(loadLibrary(#1400134))); // Make sound source & add to audio output module dm_addSoundSource(source = stereoSamplesIterator(audio, r { dm_removeSoundSource(source) })); } }