I'm not sure I get what you mean by arbitrary 3d environment, but I know BT's album "This Binary Universe" is composed for 5.1, and the first track "All That Makes Us Human Continues" is written entirely in CSound.
A language with which the programmer can specify the static or dynamic three dimensional position of the sound sources, absolute or relative to the listener in a specified environment. The geometry of the environment can affect reverberation, amplitude etc.