Mercurial > cortex
changeset 165:362bc30a3d41
cleaned up imports for hearing
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 04 Feb 2012 03:36:48 -0700 |
parents | c33a8e5fe7bc |
children | e4c2cc79a171 |
files | org/ear.org |
diffstat | 1 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/org/ear.org Sat Feb 04 03:29:59 2012 -0700 1.2 +++ b/org/ear.org Sat Feb 04 03:36:48 2012 -0700 1.3 @@ -767,13 +767,16 @@ 1.4 instantiates them in the world as actual ears." 1.5 {:author "Robert McIntyre"} 1.6 (:use (cortex world util sense)) 1.7 + (:use clojure.contrib.def) 1.8 (:import java.nio.ByteBuffer) 1.9 (:import org.tritonus.share.sampled.FloatSampleTools) 1.10 - (:import com.aurellem.capture.audio.SoundProcessor) 1.11 - (:import javax.sound.sampled.AudioFormat)) 1.12 - 1.13 -(cortex.import/mega-import-jme3) 1.14 -(use 'clojure.contrib.def) 1.15 + (:import (com.aurellem.capture.audio 1.16 + SoundProcessor AudioSendRenderer)) 1.17 + (:import javax.sound.sampled.AudioFormat) 1.18 + (:import (com.jme3.scene Spatial Node)) 1.19 + (:import com.jme3.audio.Listener) 1.20 + (:import com.jme3.app.Application) 1.21 + (:import com.jme3.scene.control.AbstractControl)) 1.22 1.23 (defn sound-processor 1.24 "Deals with converting ByteBuffers into Vectors of floats so that 1.25 @@ -815,8 +818,6 @@ 1.26 (reset! old-position new-position))) 1.27 (controlRender [_ _]))))) 1.28 1.29 -(import com.aurellem.capture.audio.AudioSendRenderer) 1.30 - 1.31 (defn create-listener! 1.32 "Create a Listener centered on the current position of 'ear 1.33 which follows the closest physical node in 'creature and