borodust / cl-bodge

Feature-rich game framework for Common Lisp
http://borodust.org/projects/cl-bodge/
MIT License
174 stars 14 forks source link

expose additional parameters in audio backend #86

Closed defaultxr closed 6 years ago

defaultxr commented 6 years ago

This is a request to expose pitch adjustment in Bodge/Gamekit. I was imagining doing something like this in Gamekit:

(gamekit:play-sound :foo :pitch 0.5)

Which would play the :foo sound at half pitch, for example.

While I'm asking, it would also be nice to be able to adjust the volume of sounds as well (looks like OpenAL refers to it as AL_GAIN).

Thank you! :)

borodust commented 6 years ago

New functions exposed:

;; setfable
#'ge.snd:audio-min-gain
#'ge.snd:audio-max-gain
#'ge.snd:audio-pitch