Skip to content
Browse files

Fixes for rock compatibility

  • Loading branch information...
1 parent 4e01f2b commit 60e0ee1a47447ce8dfa192c9123def4171ec3b7c Amos Wenger committed
Showing with 13 additions and 5 deletions.
  1. +13 −5 openal.ooc
View
18 openal.ooc
@@ -64,7 +64,7 @@ alBufferi: extern func (UInt, UInt, Int)
alGetBufferi: extern func (UInt, UInt, Int*)
// buffer operations
-alBufferData: extern func (UInt, UInt, Pointer, SizeT, SizeT)
+alBufferData: extern func (ALuint, ALformat, Char*, ALsizei, ALsizei)
//
@@ -144,7 +144,15 @@ AL_BITS: extern UInt
AL_CHANNELS: extern UInt
// buffer format
-AL_FORMAT_MONO8: extern UInt
-AL_FORMAT_MONO16: extern UInt
-AL_FORMAT_STEREO8: extern UInt
-AL_FORMAT_STEREO16: extern UInt
+ALformat: enum {
+ mono8 : extern(AL_FORMAT_MONO8)
+ mono16 : extern(AL_FORMAT_MONO16)
+ stereo8 : extern(AL_FORMAT_STEREO8)
+ stereo16 : extern(AL_FORMAT_STEREO16)
+}
+
+ALsizei: cover from Int
+ALint: cover from Int
+ALuint: cover from UInt
+
+

0 comments on commit 60e0ee1

Please sign in to comment.
Something went wrong with that request. Please try again.