                                              :whileloading while-loading
                                              :onload on-load
                                              :volume (:volume @app-state)}))
-        (if (:paused? @app-state)
-          (pause))))))
+        ))))
 
 ; TODO: probably should go into a different module...but which?
 (defn destroy-track [sound-id]

        (.play (:current-sound @app-state)
               #js {:whileplaying while-playing
                    :onfinish on-finish
                    :onplay #(.setPosition (:current-sound @app-state)
                                           duration)}))
      (.play (:current-sound @app-state)
             #js {:whileplaying while-playing
                  :onfinish on-finish
                  :onplay #(.setPosition (:current-sound @app-state)
                                        position)})))

  (let [reader (new js/FileReader)]
    (.readAsDataURL reader sound-blob)

            (vec (remove #(= (.-id sound) %) (:tracks-to-delete @app-state)))))))))

(defn pause []
  (println "Pausing current sound!")
  (.pause (:current-sound @app-state))
  (swap! app-state assoc :paused? true))

