Mercurial > cortex
diff org/hearing.org @ 169:94b79c191fc7
renamed some functions in vision.org
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 04 Feb 2012 04:23:32 -0700 |
parents | 9e6a30b8c99a |
children | facc2ef3fe5c |
line wrap: on
line diff
1.1 --- a/org/hearing.org Sat Feb 04 04:08:08 2012 -0700 1.2 +++ b/org/hearing.org Sat Feb 04 04:23:32 2012 -0700 1.3 @@ -809,7 +809,7 @@ 1.4 (reset! old-position new-position))) 1.5 (controlRender [_ _]))))) 1.6 1.7 -(defn create-listener! 1.8 +(defn add-ear! 1.9 "Create a Listener centered on the current position of 'ear 1.10 which follows the closest physical node in 'creature and 1.11 sends sound data to 'continuation." 1.12 @@ -833,7 +833,7 @@ 1.13 register-listener! 1.14 (runonce 1.15 (fn [#^Application world] 1.16 - (create-listener! 1.17 + (add-ear! 1.18 world creature ear 1.19 (fn [data] 1.20 (reset! hearing-data (vec data))))))]