]> gitweb.factorcode.org Git - factor.git/blob - extra/openal/macosx/macosx.factor
Remove with-malloc, use destructors instead
[factor.git] / extra / openal / macosx / macosx.factor
1 ! Copyright (C) 2007 Chris Double.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types kernel alien alien.syntax shuffle
4 combinators.lib openal.backend namespaces system ;
5 IN: openal.macosx
6
7 LIBRARY: alut
8
9 FUNCTION: void alutLoadWAVFile ( ALbyte* fileName, ALenum* format, void** data, ALsizei* size, ALsizei* frequency ) ;
10
11 M: macosx load-wav-file ( path -- format data size frequency )
12   0 <int> f <void*> 0 <int> 0 <int>
13   [ alutLoadWAVFile ] 4keep
14   >r >r >r *int r> *void* r> *int r> *int ;