From 1faa2712ddf4b5a506fdd4a927e1c2458f716c9d Mon Sep 17 00:00:00 2001 From: Nikita Dudnik Date: Fri, 24 Sep 2021 00:42:23 +0200 Subject: [PATCH] Update example --- src/example/cljs_audio/app.cljs | 68 ++++++++++++++----------------- src/main/cljs_audio/webaudio.cljs | 2 +- 2 files changed, 31 insertions(+), 39 deletions(-) diff --git a/src/example/cljs_audio/app.cljs b/src/example/cljs_audio/app.cljs index 208cc0e..90f457e 100644 --- a/src/example/cljs_audio/app.cljs +++ b/src/example/cljs_audio/app.cljs @@ -5,19 +5,19 @@ [cljs-audio.scheduling :as s] [cljs-audio.time :as t] [cljs-audio.modules :as m] - [cljs.core.async :refer [go > (js/fetch path) - (clj polyfill) clazz (get polyfill "AudioContext" js/AudioContext) ctx (new clazz)] - {:ctx ctx :patch [{} #{}] :env {} :stream stream :polyfill polyfill})) + {:ctx ctx :patch [{} #{}] :env {} :polyfill polyfill :stream stream})) (defn update-audio [{:keys [ctx patch env polyfill stream]} new-patch] (println :polyfill polyfill)