overtone/overtone — pull request #49 by neatonk (2011-12-21 17:17:19+00:00)
Title: Improvements to #'buffer-cue. New #'buffer-alloc-read.

Previously `#'buffer-cue` required the user to provide the number of channels to allocate or it would default to 2. Now it uses `#'buffer-alloc-read` to allocate a buffer with the same number of channels as the file it is reading. It can also now accept a `:start` parameter.

New usage:

```clj
(def b (buffer-cue "path/to/mono.wav" :start (* 3 44100)))
(buffer-info b)
;=> {:size 65536 :n-channels 1 :rate 44100.0 :id 0}
```