Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

  1. Outdated egg!
  2. alut
    1. alut
    2. Examples
    3. Author
    4. License
  3. Version History

alut

This extension provides bindings for ALUT, a utility library for the OpenAL sound API.

alut

Usage: (require-extension alut)

[procedure] (alut:Exit)
[procedure] (alut:Init INT C-POINTER)
[procedure] (alut:InitWithoutContext INT C-POINTER)
[procedure] (alut:GetErrorString INT)
[procedure] (alut:CreateBufferFromFile STRING)
[procedure] (alut:CreateBufferFromFileImage C-POINTER INT)
[procedure] (alut:CreateBufferHelloWorld)
[procedure] (alut:CreateBufferWaveForm INT FLOAT FLOAT FLOAT)
[procedure] (alut:LoadMemoryFromFile STRING)
[procedure] (alut:LoadMemoryFromFileImage C-POINTER INT)
[procedure] (alut:LoadMemoryHelloWorld)
[procedure] (alut:LoadMemoryWaveForm INT FLOAT FLOAT FLOAT)

Examples

(use openal al alc alut extras)

;; this code does no error checking


(define device (alc:OpenDevice #f))
(define context (alc:CreateContext device #f))

(alc:MakeContextCurrent context)

(define buf1 (alut:CreateBufferHelloWorld))
(define source1 (openal:make-source buf1))

(al:Sourcei source1 al:LOOPING 1)
(al:SourcePlay source1)
(read-line)
(alc:MakeContextCurrent #f)
(alc:DestroyContext context)
(alc:CloseDevice device)

Author

felix winkelmann and Alex Charlton

License

Copyright (c) 2006-2015, Felix L. Winkelmann
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:

  Redistributions of source code must retain the above copyright notice, this list of conditions and the following
    disclaimer. 
  Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
    disclaimer in the documentation and/or other materials provided with the distribution. 
  Neither the name of the author nor the names of its contributors may be used to endorse or promote
    products derived from this software without specific prior written permission. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Version History

0.9
moved alut stuff into a separate egg (alut)
0.7
test runs only for limited time when invoked over chicken-install
0.6
fixed missing libraries for non-Mac platforms
0.5
ported to CHICKEN 4
0.3
fixed easyffi requirement in meta file (thanks to mario domenech goulart)
0.2
fixed invalid references to obsolete openal-check procedure
0.1
initial release