((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/alut" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (toc) (tags "egg")) (section 2 "alut" (p "This extension provides bindings for ALUT, a utility library for the " (link "http://www.openal.org" "OpenAL") " sound API.") (section 3 "alut" (p "Usage: " (tt "(require-extension alut)")) (def (sig (procedure "(alut:Exit)" (id alut:Exit)) (procedure "(alut:Init INT C-POINTER)" (id alut:Init)) (procedure "(alut:InitWithoutContext INT C-POINTER)" (id alut:InitWithoutContext)) (procedure "(alut:GetErrorString INT)" (id alut:GetErrorString)) (procedure "(alut:CreateBufferFromFile STRING)" (id alut:CreateBufferFromFile)) (procedure "(alut:CreateBufferFromFileImage C-POINTER INT)" (id alut:CreateBufferFromFileImage)) (procedure "(alut:CreateBufferHelloWorld)" (id alut:CreateBufferHelloWorld)) (procedure "(alut:CreateBufferWaveForm INT FLOAT FLOAT FLOAT)" (id alut:CreateBufferWaveForm)) (procedure "(alut:LoadMemoryFromFile STRING)" (id alut:LoadMemoryFromFile)) (procedure "(alut:LoadMemoryFromFileImage C-POINTER INT)" (id alut:LoadMemoryFromFileImage)) (procedure "(alut:LoadMemoryHelloWorld)" (id alut:LoadMemoryHelloWorld)) (procedure "(alut:LoadMemoryWaveForm INT FLOAT FLOAT FLOAT)" (id alut:LoadMemoryWaveForm))))) (section 3 "Examples" (highlight scheme "(use openal al alc alut extras)\n\n;; this code does no error checking\n\n\n(define device (alc:OpenDevice #f))\n(define context (alc:CreateContext device #f))\n\n(alc:MakeContextCurrent context)\n\n(define buf1 (alut:CreateBufferHelloWorld))\n(define source1 (openal:make-source buf1))\n\n(al:Sourcei source1 al:LOOPING 1)\n(al:SourcePlay source1)\n(read-line)\n(alc:MakeContextCurrent #f)\n(alc:DestroyContext context)\n(alc:CloseDevice device)")) (section 3 "Author" (p (int-link "/users/felix winkelmann" "felix winkelmann") " and Alex Charlton")) (section 3 "License" (pre "Copyright (c) 2006-2015, Felix L. Winkelmann\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following\nconditions are met:\n\n  Redistributions of source code must retain the above copyright notice, this list of conditions and the following\n    disclaimer. \n  Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following\n    disclaimer in the documentation and/or other materials provided with the distribution. \n  Neither the name of the author nor the names of its contributors may be used to endorse or promote\n    products derived from this software without specific prior written permission. \n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS\nOR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\nOTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE."))) (section 2 "Version History" (dl (dt "0.9") (dd "moved " (tt "alut") " stuff into a separate egg (" (int-link "alut") ")") (dt "0.7") (dd "test runs only for limited time when invoked over chicken-install") (dt "0.6") (dd "fixed missing libraries for non-Mac platforms") (dt "0.5") (dd "ported to CHICKEN 4") (dt "0.3") (dd "fixed easyffi requirement in meta file (thanks to " (int-link "/users/mario domenech goulart" "mario domenech goulart") ")") (dt "0.2") (dd "fixed invalid references to obsolete " (tt "openal-check") " procedure") (dt "0.1") (dd "initial release"))))