import static x30_pkg.x30_util.VF1;

sbool dm_addSoundSource(VF1<double[]> source) {
  fO out = dm_audioOutputModule();
  if (out == null) ret false with print("Audio Output module not found");
  call(dm_getModule(out), 'addSource, source);
  dm_ownTimer(source, voidfunc(VF1<double[]> source) {
    call(dm_getModule(out), 'removeSource, source)
  });
  true;
}