From 9ae3ee566b8dfc532cb930d10756be032239ca3c Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 6 Jan 2017 19:24:46 -0800 Subject: [PATCH] Update README; --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 003ec243..1d9f1e3c 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,20 @@ end Finally, start SteamVR and drag the `myGame` folder onto `lovr.exe`. Put on your headset and you should see a spinning purple cube! +#### Audio + +Play an ogg file: + +``` +function lovr.load() + local sound = lovr.audio.newSource('darudeSandstorm.ogg') + sound:play() +end +``` + +Audio is spatialized using HRTFs, and the virtual audio listener is synchronized with the pose of +the HMD. + #### 3D Models LÖVR supports most 3D model file formats: @@ -69,6 +83,7 @@ a custom build. - assimp (for `lovr.model` and `lovr.graphics.newModel`) - OpenVR (for `lovr.headset`) - PhysicsFS +- OpenAL (1.17+ recommended for HRTF support) #### Windows (CMake)