                     entry-node (w/main-entry-node worker ctx config)
                     mp3s       (atom [])
                     exit-node  (w/main-exit-node
-                                worker (fn [mp3]
-                                         (js/console.log "MP3"
-                                                         (count @mp3s)
-                                                         mp3)
-                                         (swap! mp3s conj mp3)))
+                                worker (fn [mp3] (swap! mp3s conj mp3)))
                     dest       (.createMediaStreamDestination ctx)]
                 (.connect source entry-node)
                 (.connect entry-node (.-destination ctx))
                 (set! (.-onended source)
                       (fn [e]
-                        (js/console.log "ENDED")
                         (.disconnect source)
                         (.disconnect dest)
                         (go
                           (<! (timeout 5000))
-                          (js/console.log "TERMINATE")
                           (.disconnect entry-node)
                           (.terminate worker)
                           (.close ctx)

                     :finished    true)
              (.close ctx))
            (load-file [data]
              (js/console.log "LOAD FILE" data)
              (let [ctx (a/audio-context)]
                (doto ctx
                  (.decodeAudioData data

(ns audio-utils.devcards.mp3-encoder
  (:refer-clojure :exclude [load-file])
  (:require-macros [cljs.core.async.macros :refer [go]])
  (:require [cljs.core.async :refer [<! timeout]]
            [devcards.core :refer-macros [defcard defcard-doc]]
