==== Assignment 3 ==== {{:assignments:assignment3.pdf|Assignment 3 Description}} ==== Installing OpenAL and alut ==== To install OpenAL on Windows: [[http://openal.org/downloads/oalinst.zip|Installer]] To install OpenAL on Mac: [[https://github.com/kcat/openal-soft|Github]] To install alut on Windows or Mac: [[https://github.com/vancegroup/freealut|Github]] Follow the cmake instructions, the VisualStudio ones seem obsolete. ==== Visual Studio Project Settings ==== Open a New Project -> Win32 Console Application Go to Project ‘Properties’ : -- Add C:\Program Files\OpenAL 1.1 SDK\include to C++ -> General -> Additional Include Directories -- Add C:\Program Files\OpenAL 1.1 SDK\libs\Win32 to Linker -> General -> Additional Library Directories -- Add OpenAL32.lib at the end to Linker -> Input -> Additional Dependencies In your source code, you'll need #include "al.h" #include "alc.h" For alut, it's best to copy alut.dll in the project directory, and #include "alut.h" If you like, you can start with this {{:assignments:emptyproject.zip|empty project}} that has all the settings and includes alut.dll ==== Useful links ==== [[http://openal.org/documentation/|OpenAL Documentation]] [[https://mrl.nyu.edu/~dzorin/ig04/lecture10/OpenALDemo.cpp|Detailed OpenAL sample code]] [[https://github.com/iamsakil/Simple-Games|Simple text-based C++ games]] [[http://soundbible.com/|Sound effects]] [[https://www.bensound.com/|Copyright-free music]]