1 ! Copyright (C) 2007 Chris Double.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.syntax combinators generalizations
4 kernel openal openal.alut.backend ;
9 FUNCTION: void alutLoadWAVFile ( c-string fileName, ALenum* format, void** data, ALsizei* size, ALsizei* frequency, ALboolean* looping ) ;
11 M: object load-wav-file ( filename -- format data size frequency )
16 [ 0 char <ref> alutLoadWAVFile ] 4 nkeep
17 { [ int deref ] [ *void* ] [ int deref ] [ int deref ] } spread ;